Timer triggers WM_Paint

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

  • Timer triggers WM_Paint

    Hello Adrian,

    is it true that a timer always triggers WM_Paint in a dialog?

    There is nothing to repaint, because nothing has changed. This is intended, right?
    Does the gui always repaint or only when necessary (invalid area)? I wonder if it eats CPU-power by going through the WM_PAINT every time the timer triggers...

    Best regards,
    HaJo
  • Hello HaJo,

    The Window Manager sends WM_PAINT messages to invalid windows only. Please make sure to invalidate windows only if it is required to redraw it.

    More details can be found in the chapter "The Window Manager" in the emWin user manual.

    Best regards,
    Adrian