现在的位置: 首页 > 综合 > 正文

win32 c++ 窗体在任务栏中隐藏

2012年02月23日 ⁄ 综合 ⁄ 共 253字 ⁄ 字号 评论关闭
DWORD dwExStyle = GetWindowLong(hWnd, GWL_STYLE);
   dwExStyle &= ~(WS_VISIBLE);
   dwExStyle |= WS_EX_TOOLWINDOW;   
   dwExStyle &= ~(WS_EX_APPWINDOW);
   SetWindowLong(hWnd, GWL_STYLE, dwExStyle);
   ShowWindow(hWnd, SW_SHOW);
   ShowWindow(hWnd, SW_HIDE);
   UpdateWindow(hWnd);

抱歉!评论已关闭.