Wednesday, April 25th 2018, 12:40am UTC+2

You are not logged in.

  • Login
  • Register

Dear visitor, welcome to SEGGER Forum. If this is your first visit here, please read the Help. It explains how this page works. You must be registered before you can use all the page's features. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.



Date of registration: Jan 13th 2015

Posts: 29

Location: Germany


Friday, February 27th 2015, 1:43pm

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,

Date of registration: May 26th 2009

Posts: 1,022


Monday, March 9th 2015, 10:25am

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,