Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

auto-hide window taskbar

0 views
Skip to first unread message

Larry

unread,
Apr 25, 2001, 8:27:38 PM4/25/01
to
Hi,

how can I set window TaskBar to Auto-Hide in a program?

thanks a lot,

larry

Scot T Brennecke

unread,
Apr 25, 2001, 9:27:30 PM4/25/01
to
From the MSDN Library, article Q179363:
"There is no programmatic way to change the Auto-Hide option (that is left up to
the user by design), but if a program takes over the entire screen then it will
automatically cover the taskbar.

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);"

marsco3.vcf
0 new messages