问题: 窗口子类化
参考资料:
https://docs.microsoft.com/zh-cn/cpp/atl/implementing-a-window-with-cwindowimpl?view=vs-2019
https://wenku.baidu.com/view/aa2d082ced630b1c59eeb5c2.html#
问题: 如何在状态栏上固定展示自己的应用图标
参考资料:
https://www.jianshu.com/p/dc1f070da4ab
https://forums.codeguru.com/showthread.php?306661-How-to-always-show-an-icon-in-system-tray
问题: 点击其他位置,托盘菜单无法自动消失的问题
参考资料:
https://blog.richex.cn/383.html
http://www.360doc.com/content/17/0411/09/3242454_644595742.shtml
问题: 托盘hover和leave消息实现
参考资料:
https://www.codeproject.com/Articles/8067/How-to-implement-mouse-hover-leave-message-on-syst
https://www.itread01.com/content/1494491955.html
问题: 程序异常退出后,托盘图标清理
参考资料:
https://www.cnblogs.com/boxy/p/11402966.html
问题: 获取托盘图标位置
参考资料:
https://www.codeproject.com/Articles/3694/CTrayIconPosition-where-is-my-tray-icon
问题: 捕获计算机休眠和唤醒消息
参考资料:
https://bbs.csdn.net/topics/330157962
https://www.cnblogs.com/findumars/p/6031448.html
https://docs.microsoft.com/en-us/windows/win32/power/pbt-apmresumesuspend
问题: 捕获窗口(控件)hover和leave消息
参考资料:
https://www.cnblogs.com/weiqubo/archive/2011/04/14/2016323.html
https://blog.csdn.net/focusing_on_cpp/article/details/46647371
https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-trackmouseevent
问题: #define WIN32_LEAN_AND_MEAN
参考资料:
https://www.cnblogs.com/flyinggod/p/8324369.html
问题: 定时器中弹出Messagebox,会是什么现象?
答案:不会阻塞,会一直弹,因为虽然Messagebox是模态框,阻塞了父窗口,但它又建立了自己的消息循环接管父窗口消息循环,定时器消息仍然会被处理,而只是屏蔽了父窗口的消息。
参考资料:https://www.cnblogs.com/dongzhiquan/archive/2009/04/08/1994910.html
问题: PeekMessage完美解决MFC主界面无响应
参考资料:http://www.voidcn.com/article/p-pdbiyijb-bco.html
网友评论