|
我以前用的很好,很强大
放在OnInitDialog()函数中
///////////隐藏任务栏
LONG lOldWindowStyle;
RECT rectOldTaskBarRect;
HWND hOldhTaskBar = ::FindWindow(_T("HHTaskBar"),NULL);
while( hOldhTaskBar == NULL )
{
hOldhTaskBar = ::FindWindow(_T("HHTaskBar"),NULL);
Sleep( 1000 );
}
::GetWindowRect( hOldhTaskBar, &rectOldTaskBarRect );
::SetWindowPos( hOldhTaskBar, HWND_BOTTOM, 0, 0, 0, 0, SWP_HIDEWINDOW|SWP_NOACTIVATE|SWP_NOMOVE|SWP_NOSIZE);
lOldWindowStyle = GetWindowLong(hOldhTaskBar, GWL_STYLE);
::SetWindowLong( hOldhTaskBar, GWL_STYLE, lOldWindowStyle|WS_DISABLED ); |
|