0 Members and 1 Guest are viewing this topic.
// --------------------------------------------------------------// Paint individual vessel markings// --------------------------------------------------------------void DeltaGlider::PaintMarkings (SURFHANDLE tex){ HDC hDC = oapiGetDC (tex); HFONT hFont = CreateFont(38, 0, 0, 0, 700, 0, 0, 0, 0, 0, 0, 0, 0, "Arial" ) ; HFONT pFont = (HFONT)SelectObject (hDC, hFont); SetTextColor (hDC, 0xD0D0D0); SetBkMode (hDC, TRANSPARENT); SetTextAlign (hDC, TA_CENTER); char cbuf[32]; strncpy (cbuf, GetName(), 10); int len = min(strlen(GetName()), 10); TextOut (hDC, 196, 10, cbuf, len); TextOut (hDC, 196, 74, cbuf, len); SetTextColor (hDC, 0x808080); SetTextAlign (hDC, TA_RIGHT); TextOut (hDC, 120, 158, cbuf, len); SetTextAlign (hDC, TA_LEFT); TextOut (hDC, 133, 158, cbuf, len); SelectObject (hDC, pFont); DeleteObject (hFont); oapiReleaseDC (tex, hDC);}