im working on a tiny application.
but dunno how to overcome this strange problem.
the application starts and does nothing until i hit the minimize button on the system menu (upper right corner), the window get's minimized and a timer starts. then after 5 secs the window's device context should in theory be updated with some draw-text information (which it does not!) however, if i maximize the window before the 5 seconds have gone it updates the device context! so it the drawing works when window is maximized and not when its minimized. i've tried UpdateWindow and InvalidateRect etc.. when window is minimized without any luck. drawing-code looks something like this:
update = 1;
SendMessage(window.GetHwnd(), WM_PAINT, 0, 0);
if (update == 1)
InvalidateRect(window.GetHwnd(), &window.rc, TRUE);
update = 0;