CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2008
    Location
    Earth
    Posts
    60

    Win32API OnEraseBkgnd(CDC* pDC) equivalent?

    How to accomplish the "OnEraseBkgnd(CDC* pDC)" equivalent without MFC?

    Win32API gives you DialogProc, which only allows you to return TRUE or FALSE, I cannot call a default dialogproc, then do something, then return.

    overriding WM_ERASEBKGND to perform a ExcludeClipRect on a control does not work for me...
    but it did in MFC.

    any ideas anyone?

  2. #2
    Join Date
    Jan 2008
    Location
    Earth
    Posts
    60

    Re: Win32API OnEraseBkgnd(CDC* pDC) equivalent?

    solved, use "Clip children" in dialog resource to prevent flickering, not erasebkg processing override needed anymore ;-)

  3. #3
    Join Date
    Feb 2003
    Location
    Iasi - Romania
    Posts
    8,244

    Re: Win32API OnEraseBkgnd(CDC* pDC) equivalent?

    Quote Originally Posted by 12oclocker View Post
    solved, use "Clip children" in dialog resource to prevent flickering, not erasebkg processing override needed anymore ;-)
    Just curious. Do you think that has to be different in MFC?
    Ovidiu
    "When in Rome, do as Romans do."
    My latest articles: https://codexpertro.wordpress.com/

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured