Hi all
When i use SetTimer, then i want display current time at WM_TIMER event
but the place of DefWindowProc call will have different result
1. If the DefWindowProc always call before return
the WM_TIMER message work fine, but in WM_PAINT call, i also display some
message, it not work
2. If the DefWindowProc will be called if there is no more valid window message
the WM_TIMER event will not work, only if i click one button, then WM_TIMER
will work normal, WM_PAINT always work fine

Does any one know best location of DefWindowProc call ??

thanks
Posted on 2003-03-04 04:55:01 by jordanc
Does any one know best location of DefWindowProc call ??

Follow m$ standards, call DefWindowProc when not processing the message.

Just a suggestion you can call the WM_PAINT message when processing WM_TIMER by using SendMessage API.
Posted on 2003-03-04 07:43:55 by roticv