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);
本文转自94cool博客园博客,原文链接:http://www.cnblogs.com/94cool/archive/2012/10/23/2736334.html,如需转载请自行联系原作者