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

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);
posted @ 2012-10-23 22:31  94cool  阅读(4180)  评论(0编辑  收藏  举报