   [C++/Win32] Going fullscreen during runtime?
  Hey guys, having a little trouble here. Is there some way to toggle fullscreen on and off in my Windows app during runtime? I thought of changing the value of 'isFullscreen', destroying the window, and then creating it again, but it doesn't seem to work. DestroyWindow() just ends the whole program and CloseWindow() sort of half works (it leaves the old window in the taskbar and causes some other small funky glitches).So anyone know of how this can be accomplished? I've got everything working other than being able to get rid of the old window.   
  Try this. This assumes you start in windowed mode, and that we are only working with one window.void window::fullscreen( bool enable ){long style = enable ? WS_POPUP : /*your windowed style*/;static RECT windowRect = {};static bool needRect = true;if (needRect){GetWindowRect(hwnd,&windowRect);needRect = false;}SetWindowLong(hwnd,GWL_STYLE,style);if ( enable ){   SetWindowPos(hwnd, HWND_TOPMOST,   0,0,   GetSystemMetrics(SM_CXSCREEN),   GetSystemMetrics(SM_CYSCREEN),   SWP_SHOWWINDOW);}else{   SetWindowPos(hwnd, 0,   windowRect.left,windowRect.top,   windowRect.right - windowRect.left,   windowRect.bottom - windowRect.top,   SWP_SHOWWINDOW);}}You may need a call to AdjustRect() in there too when going full. Don't hold me to that though.   ;  Hey, thanks for the help man; I think I've got it all figured out now.   