functions (not) callable by WM_PRE_PAINT

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • functions (not) callable by WM_PRE_PAINT

      I found that some functions should not be called when processing the WM_PAINT message:

      I wonder if this also applies to WM_PRE_PAINT and WM_POST_PAINT, and in general for which other messages this applies.

      best regards
    • Hi,

      the messages WM_PRE_PAINT and WM_POST_PAINT are getting send to a window before and after a paint event.

      So, if you call a function like WM_CreateWindow() while reacting on one of these messages each time a window gets created.

      And the paint events can occur quite often.