如何掩藏一个窗体的小图标?
如何掩藏一个窗体左上角的小图标,但在Alt + Tab 切换时可以看到程序图标。
WM_SETICON Message
An application sends the WM_SETICON message to associate a new large or small icon with a window. The system displays the large icon in the ALT+TAB dialog box, and the small icon in the window caption.
MSDN里面写的,发WM_SETICON消息时,可以指定一个大图标用于在ALT+TAB中显示,一个小图标在窗体标题上显示。
我发消息
SendMessage(hwnd,WM_SETICON,ICON_BIG,hicon);
SendMessage(hwnd,WM_SETICON,ICON_SMALL,null);
结果ALT+TAB中出现图标,但窗体标题上也出现了图标,为什么?
或者有什么其他方法可以实现上述效果。