[idd] helper: stop using MsgWaitForMultipleObjects
`MsgWaitForMultipleObjects` doesn't handle inner message loops, which may happen during `TrackPopupMenu`, causing exits to fail.
This commit is contained in:
1 parent
d006dbb547
commit
9009217366
3 files changed
+38
-35
No files matched your search
@@ -10,15 +10,19 @@ class CNotifyWindow : public CWindow
|
||||
|
||||
NOTIFYICONDATA m_iconData;
|
||||
HMENU m_menu;
|
||||
bool closeRequested;
|
||||
|
||||
LRESULT onNotifyIcon(UINT uEvent, WORD wIconId, int x, int y);
|
||||
void registerIcon();
|
||||
|
||||
virtual LRESULT handleMessage(UINT uMsg, WPARAM wParam, LPARAM lParam) override;
|
||||
virtual LRESULT onCreate() override;
|
||||
virtual LRESULT onClose() override;
|
||||
|
||||
public:
|
||||
CNotifyWindow();
|
||||
~CNotifyWindow() override;
|
||||
static bool registerClass();
|
||||
|
||||
void close();
|
||||
};
|
||||
Reference in new issue
Block a user