how can I set window TaskBar to Auto-Hide in a program?
thanks a lot,
larry
To cover the taskbar, you must set the size of the full-screen window
explicitly. You cannot just maximize the window. A maximized window takes up the
workspace area, which doesn't include the taskbar.
The following sample code causes the specified window to cover the entire
primary monitor and cover all taskbars on the primary monitor.
cx = GetSystemMetrics(SM_CXSCREEN);
cy = GetSystemMetrics(SM_CYSCREEN);
SetWindowPos(hwnd,HWND_TOP,0,0,cx,cy,SWP_SHOWWINDOW);"