I have a Window created on an embeddeed system. In the Window is a progressbar that is moving. After a while, the screen turns black and only the progress bar is visible. I think it has to do with the environment somehow. I want my WIndow to be visible and have an idea that it could be done with a timer. However, I haven't programmed C in WIndows so much so I'm slightly green.
What do I need to do to get my Window refreshed over and over again, lets say every 15th second?
Do I need to do something with the callback procedure, or can I get another one for the timer? My program looks something like this:
HWND hCurPage = NULL;
LRESULT CALLBACK WndProc( HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam )
switch( uMsg )
PostQuitMessage( 0 );
return( DefWindowProc( hwnd, uMsg, wParam, lParam ) );
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
LPSTR lpCmdLine, int nCmdShow)
hCurPage = CreateDialog (hInst, MAKEINTRESOURCE(IDD_DIALOG_WINDOW), NULL, (DLGPROC) WndProc);