- // Implementation only from here
- // event handlers
- bool MSWOnPaint();
- WXHICON MSWOnQueryDragIcon();
- void MSWOnSize(int x, int y, WXUINT flag);
- bool MSWOnCommand(WXWORD id, WXWORD cmd, WXHWND control);
- bool MSWOnClose();
- void MSWOnMenuHighlight(WXWORD item, WXWORD flags, WXHMENU sysmenu);
- bool MSWProcessMessage(WXMSG *msg);
- bool MSWTranslateMessage(WXMSG *msg);
- void MSWCreate(int id, wxWindow *parent, const char *wclass,
- wxWindow *wx_win, const char *title,
- int x, int y, int width, int height, long style);
-
- // tooltip management
-#if wxUSE_TOOLTIPS
- WXHWND GetToolTipCtrl() const { return m_hwndToolTip; }
- void SetToolTipCtrl(WXHWND hwndTT) { m_hwndToolTip = hwndTT; }
-#endif // tooltips
+ // handle WM_INITMENUPOPUP message to generate wxEVT_MENU_OPEN
+ bool HandleInitMenuPopup(WXHMENU hMenu);