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);
原文地址:https://www.cnblogs.com/94cool/p/2736334.html