Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个简单的应用程序,当我连接到扩展坞时会更改数字锁定状态。问题是我不知道如何检测第二台显示器何时连接(和断开连接),所以我只在连接后设置状态。所以我正在寻找 Screen.Resize 事件或类似事件。
我正在使用 Windows 7,因此我将满足于仅 Windows 7 的解决方案,但如果可能的话,我想要一个更通用的解决方案。
另一件事 - 这应该是与 VS 2008 C++ Express 兼容的解决方案;-),但我可以在工作中访问完整的 VS,因此 MFC 要求也可以管理。
WM_DISPLAYCHANGE