   Game won't close from the taskbar
  I am trying to get my game to close via right clicking it in the task bar and selecting close.  This works when I run in windowed mode, but not when I alt+tab out of fullscreen and try.  When I click the close option a popup says "This program is not responding."  I've looked and I'm still checking for WM_ messages and PeekMessage is still being checked.  Is there a different message I need to handle in this situation?   
  No, you're probably just handling messages improperly.What's your code look like?[Edited by - jpetrie on September 12, 2007 11:26:24 AM];  These are the wm messages I process related to close.  (on XP)    switch (uMsg)   {    case WM_CLOSE:   {  DestroyWindow(g_hwnd);  break;   }    case WM_DESTROY:   {  PostQuitMessage(0);  g_Quit = true;  break;   }}return DefWindowProc(hwnd,uMsg,wParam,lParam);;  And what's the rest of your code look like? Particularly the actual message loop.   ;  Sorry this took a while to post.  I had a meeting.  Here is my message loop.    // Windows message loop    MSG msg = {0};    while (PeekMessage(&msg, g_hwnd, 0, 0, PM_REMOVE))    {  // Filter out.  #ifdef SECRET  if(!SecretPreTranslateMessage( &msg ))   {    TranslateMessage( &msg );    DispatchMessage( &msg );   }  #else   TranslateMessage(&msg);   DispatchMessage(&msg);  #endif    };  Issue resolve.  I had left out WS_SYSMENU when setting up the window for fullscreen.   