我想像MSN、QQ那样,当有消息来的时候,任务栏上的消息对话框变成兰色,该如何做呢?

dancetime 2003-12-29 12:35:59
注意:不是Tray图标闪动,而是任务栏。
...全文
171 10 打赏 收藏 转发到动态 举报
写回复
用AI写文章
10 条回复
切换为时间正序
请发表友善的回复…
发表回复
dancetime 2003-12-30
  • 打赏
  • 举报
回复
GetForegroundWindow是可以的。我已经试过了。并排的时候虽然可以看见,但是只有一个是处于选中的状态,它就是ForegroundWindow。
jackwuwei 2003-12-30
  • 打赏
  • 举报
回复
呵呵,来迟了,我是来混分的
jimsleon 2003-12-29
  • 打赏
  • 举报
回复
GetForegroundWindow()不一定能解决问题吧?因为可能两个窗口并排的时候,一样可以看见的
蒋晟 2003-12-29
  • 打赏
  • 举报
回复
GetForegroundWindow Function (Windows User Interface)
The GetForegroundWindow function returns a handle to the foreground window (the window with which the user is currently working).
dancetime 2003-12-29
  • 打赏
  • 举报
回复
恩,已经成功用FlashWindow达到目标了。还有点小问题:我只想当这个窗口不是在顶部(被别的窗口遮住了等)的时候才执行这个FalshWindow,怎么判断呢?
yintongshun 2003-12-29
  • 打赏
  • 举报
回复
FlashWindow
CounterHack 2003-12-29
  • 打赏
  • 举报
回复
FlashWindow()
shootingstars 2003-12-29
  • 打赏
  • 举报
回复
Notifying the User of Errors
The following example uses FlashWindow to flash a window and MessageBeep to play the system exclamation sound.

FlashWindow(hwnd, TRUE); // invert the title bar
Sleep(500); // wait a bit
FlashWindow(hwnd, TRUE); // invert again

// Play the system exclamation sound.

MessageBeep(MB_ICONEXCLAMATION);
梦断酒醒 2003-12-29
  • 打赏
  • 举报
回复
让它成为顶层窗口就可以了
jimsleon 2003-12-29
  • 打赏
  • 举报
回复
FlashWindow()或者FlashWindowEx()

15,979

社区成员

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

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