想将系统栏上的图标隐藏,用FindWindow的方法SW_HIDE成功,但没有立即更新重绘,试了很久也没成,不知用什么方法

DanielPrc 2002-02-27 01:52:30
...全文
66 14 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
14 条回复
切换为时间正序
请发表友善的回复…
发表回复
DanielPrc 2002-02-27
  • 打赏
  • 举报
回复
再提
DanielPrc 2002-02-27
  • 打赏
  • 举报
回复
DanielPrc 2002-02-27
  • 打赏
  • 举报
回复
哈哈,也不行,不好意思啦!
dct1999 2002-02-27
  • 打赏
  • 举报
回复
NOTIFYICONDATA tnid;
tnid.cbSize = sizeof(NOTIFYICONDATA);
tnid.hWnd = this->m_hWnd;
tnid.uID = IDR_MAINFRAME;
Shell_NotifyIcon(NIM_DELETE,&tnid);
DanielPrc 2002-02-27
  • 打赏
  • 举报
回复
哦,不好意思,没讲清楚!
是这样的,要将金山词霸所在的SysTray里的图标给隐藏,我通过寻找ToolbarWindow32的方法确认已经可以将那个窗口SW_HIDE了,但没有即时更新...
2ndboy 2002-02-27
  • 打赏
  • 举报
回复
是自己程序生成的图标还是其他程序的?
linxiao 2002-02-27
  • 打赏
  • 举报
回复
你是老外
DanielPrc 2002-02-27
  • 打赏
  • 举报
回复
提啊提,提啊提...
DanielPrc 2002-02-27
  • 打赏
  • 举报
回复
还有哪位大侠知道的呢?
DanielPrc 2002-02-27
  • 打赏
  • 举报
回复
我说的是系统栏上的图标,在时间旁边的那些东西...
li_zuo_min 2002-02-27
  • 打赏
  • 举报
回复
There are two ways to prevent a window from appearing on the shell's taskbar and in the task list window that appears when you press ALT+TAB.

Give the window the WS_EX_TOOLWINDOW extended style, and remove the WS_EX_APPWINDOW style. As a side effect, the window will have a smaller caption than a normal window.


Give the window the WS_POPUP style and make it owned by a hidden window.
DanielPrc 2002-02-27
  • 打赏
  • 举报
回复
刚才试过了,用这个不行,好久对ToolbarWindow32要特殊的方法才行啊
我不是大明 2002-02-27
  • 打赏
  • 举报
回复
对·!
kimryo 2002-02-27
  • 打赏
  • 举报
回复
InvalidateRect

1,659

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC 非技术类
社区管理员
  • 非技术类社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧