   Need help in win32 programming
  Hello, I"m new to windows programming andI"m having some problems to integrate into the concept of the main loop..I understand that the WinMain function is like main() in c programing and the message loop is a response for any message that is comming to my window. Now I wanted to ask, if the GetMessage function waits for a message, it blocks the prosses until it gets a message (right ? )and I dont know where should I put my functions which are needed to work even if there are no messages, lets say like a function which always displays time. while(GetMessage(&Msg, NULL, 0, 0) > 0)    {   TranslateMessage(&Msg;   DispatchMessage(&Msg;    } 
  You need to use the non-blocking PeekMessage function.  You could use a timer or even a separate thread for other tasks if you wanted too though.   [edited by - arm on February 4, 2004 9:57:37 AM];  MSG  msg;msg.message = WM_NULL;while (msg.message != WM_QUIT){    if (PeekMessage(&msg, NULL, 0, 0, PM_REMOVE)){   TranslateMessage(&msg);   DispatchMessage(&msg);    }    else{// ....    }} ;  Thanks its, working, i got the idea 