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:
      [img]https://s10.postimg.org/6qmdcp461/WM_PAINT.png[/img]

      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
      Max
    • 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.

      Regards,
      Sven
      Please read the forum rules before posting.

      Keep in mind, this is *not* a support forum.
      Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
      Should you be entitled to support you can contact us via our support system: segger.com/ticket/

      Or you can contact us via e-mail.