Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


Picture control flickering

This topic is 5276 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!