在初始化时加上:
ModifyStyleEx(WS_EX_APPWINDOW,WS_EX_TOOLWINDOW);
WS_EX_APPWINDOW:Forces a top-level window
onto the taskbar when the window is visible.
WS_EX_TOOLWINDOW:Creates a tool window, which is a window intended to be used as a floating toolbar. A tool window has a title bar that is shorter than a normal title bar, and the window title is drawn using a smaller font. A tool window
does not appear in the task bar or in the window that appears when the user presses ALT+TAB.

本文介绍了Windows应用程序中两种窗口样式属性WS_EX_APPWINDOW和WS_EX_TOOLWINDOW的区别与使用方法。WS_EX_APPWINDOW使得顶级窗口出现在任务栏中,而WS_EX_TOOLWINDOW创建浮动工具窗口,这种窗口不会出现在任务栏也不会响应ALT+TAB切换。
1206

被折叠的 条评论
为什么被折叠?



