Hi, It's 'my' program. How to close windows after 5 seconds?
//...
DeleteObject (hPedzelOkna);
DeleteObject (hBitmapa);
Sleep(5);
PostQuitMessage (0);
/* The program return-value is 0 - The value that PostQuitMessage() gave */
//...
and
DestroyWindow(hwnd);
not work
(I using Dev C++)
EDIT People have suggested using SetTimer
, however I can't get the following code to work. Could you please a code example showing me how to do this?
SetTimer(hwnd, DestroyWindow(hwnd), 1000, NULL);