Unregistered
October 23, 2003, 09:22:23
I'm using the Control in a MFC dialog box. I handle the Overlay Update event (which is getting called) and do the following...
COverlayBitmap* pBM = &m_ctl.GetOverlayBitmap();
static int frames = 0;
CString s;
s.Format("Frames: %d", frames++); // Current frame count
pBM->SetEnable(TRUE);
pBM->DrawText(RGB(255,0,0),10,10,s); // Red text in the upper left corner
but no text appears on the screen. I've tried a call to m_ctl.Invalidate() also without effect. Is there anything else I have to do?
Thx.
COverlayBitmap* pBM = &m_ctl.GetOverlayBitmap();
static int frames = 0;
CString s;
s.Format("Frames: %d", frames++); // Current frame count
pBM->SetEnable(TRUE);
pBM->DrawText(RGB(255,0,0),10,10,s); // Red text in the upper left corner
but no text appears on the screen. I've tried a call to m_ctl.Invalidate() also without effect. Is there anything else I have to do?
Thx.