I have a windowed app on Windows 7. I double click the title bar to make the window max the entire screen. The taskbar remains visible on the bottom, but this is undesired. I did some research, and this is what I came up with. However, the task bar is still showing. Any thoughts would be helpful. Thanks.
Edit: To clarify, this is for a fullscreen-windowed game that covers the taskbar, and not actually trying to kill the user's taskbar.
ShowWindow(g_hWnd, SW_HIDE); LONG lStyle = GetWindowLong(g_hWnd, GWL_STYLE); lStyle &= ~(WS_CAPTION | WS_THICKFRAME | WS_MINIMIZE | WS_SYSMENU); SetWindowLong(g_hWnd, GWL_STYLE, lStyle); LONG lExStyle = GetWindowLong(g_hWnd, GWL_EXSTYLE); lExStyle &= WS_EX_APPWINDOW | WS_EX_TOPMOST; SetWindowLong(g_hWnd, GWL_EXSTYLE, lExStyle); SetWindowPos(g_hWnd, HWND_TOPMOST, 0,0,0,0, SWP_FRAMECHANGED | SWP_NOMOVE | SWP_NOSIZE | SWP_NOZORDER | SWP_NOOWNERZORDER); ShowWindow(g_hWnd, SW_SHOW);
Edited by shinypixel, 07 May 2014 - 03:49 PM.