隐藏窗口

声明: BOOL CWnd::SetWindowPos(const CWnd* pWndInsertAfter, int x, int y, int cx, int cy, UINT nFlags);
示例: SetWindowPos(&CWnd::wndNoTopMost, 0, 0, 0, 0, SWP_HIDEWINDOW);
HWND_NOTOPMOST :值为-2,将窗口置于所有非顶层窗口之上(即在所有顶层窗口之后)。如果窗口已经是非顶层窗口则该标志不起作用。
SWP_HIDEWINDOW :隐藏窗口

隐藏窗口任务栏图标

扩展窗口风格(Extended Window Styles)

WS_EX_APPWINDOW
当窗口可见时,将一个 顶层窗口放置到任务条上
Forces a top-level window onto the taskbar when the window is visible.

WS_EX_TOOLWINDOW
创建工具窗口,即窗口是一个游动的工具条。工具窗口的标题条比一般窗口的标题条短,并且窗口标题以小字体显示。 工具窗口不在任务栏里显示 ,当用户按下alt+Tab键时工具窗口不在对话框里显示。如果工具窗口有一个系统菜单,它的图标也不会显示在标题栏里,但是,可以通过点击鼠标右键或Alt+Space来显示菜单。
Creates a tool window, which is a window intended to be used as a floating toolbar. A tool window has a title ba