自己写的win32程序,如何隐藏任务栏图标,但是程序窗口还在,程序已在托盘中显示
http://www.cnblogs.com/94cool/archive/2012/10/23/2736334.html
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);