Picture control flickering
Hi all,
I have a picture control embedded in a Form View of a
Splitter window (in a MDI-based app). Can u plz tell
me how exactly I can avoid flickering of the control
while I resize the ChildWindow? I tried implementing
OnEraseBkgnd in the Form View and also in a seperate
CWnd class as follows:
// PictureControlWnd
IMPLEMENT_DYNAMIC(PictureContorlWnd, CWnd)
PictureContorlWnd:ictureContorlWnd()
{
}
BEGIN_MESSAGE_MAP(PictureContorlWnd, CWnd)
ON_WM_ERASEBKGND()
END_MESSAGE_MAP()
BOOL VRMediaPlayerPictureContorlWnd::OnEraseBkgnd(CDC*
pDC)
{
return TRUE; // i tried even FALSE
}
//and then in the FormView''s OnInitialUpdate()
PictureContorlWnd m_aviPicControlWnd;
m_aviPicControlWnd.SubclassDlgItem(IDC_STATIC_PLAYFRAME,this);
Plz do let me know if u have any suggestions
Thanks a lot
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement