Главная страница | назад





Article #17401: How do I hide the WIndows Task Bar?

 Question and Answer Database
FAQ2401C.txt How do I hide the WIndows Task Bar?
Category :Windows API
Platform :All
Product :C++Builder 3.x
Question:
How do I hide the WIndows Task Bar?
Answer:
First call the Windows API function FindWindow() to retrieve the
handle to the TaskBar Window, then call the Windows API function
ShowWindow() passing the predefined constant SW_HIDE.
Example:
void __fastcall TForm1::Button1Click(TObject *Sender)
{
HWND hTaskbar;
hTaskbar = FindWindow("Shell_TrayWnd", NULL);
ShowWindow(hTaskbar, SW_HIDE);
}
void __fastcall TForm1::Button2Click(TObject *Sender)
{
HWND hTaskbar;
hTaskbar = FindWindow("Shell_TrayWnd", NULL);
ShowWindow(hTaskbar, SW_SHOWNORMAL);
}
7/2/98 10:32:32 AM

Last Modified: 01-SEP-99