发布网友 发布时间:2022-04-24 13:34
共4个回答
热心网友 时间:2023-10-14 15:37
void CHideStartMenuDlg::OnHide()
{
HWND parent=::FindWindow("Shell_TrayWnd","");
HWND startmenu=::FindWindowEx(parent,0,"Button",NULL);
if(startmenu!=NULL)
{
::ShowWindow(startmenu,SW_HIDE);
}
}
void CHideStartMenuDlg::OnShow()
{
HWND parent=::FindWindow("Shell_TrayWnd","");
HWND startmenu=::FindWindowEx(parent,0,"Button",NULL);
if(startmenu!=NULL)
{
::ShowWindow(startmenu,SW_SHOW);
}
}
热心网友 时间:2023-10-14 15:37
windows API 函数:
SetWindowLong(Application.Handle, GWL_EXSTYLE, WS_EX_TOOLWINDOW);
参数1就是你程序本身的句柄
热心网友 时间:2023-10-14 15:38
CreateWindowEx(WS_EX_TOOLWINDOW, szWindowClass, "Caption", WS_POPUP,
0, 50, 400, 30, NULL, NULL, hInstance, NULL);
添加上 WS_EX_TOOLWINDOW, WS_POPUP 这两项就OK了
热心网友 时间:2023-10-14 15:39
Hide()函数