- // Handlers
- bool MSWOnPaint(void);
- WXHICON MSWOnQueryDragIcon(void);
- void MSWOnSize(int x, int y, WXUINT flag);
- bool MSWOnCommand(WXWORD id, WXWORD cmd, WXHWND control);
- bool MSWOnClose(void);
- void MSWOnMenuHighlight(WXWORD item, WXWORD flags, WXHMENU sysmenu);
- bool MSWProcessMessage(WXMSG *msg);
- void MSWCreate(int id, wxWindow *parent, const char *WXUNUSED(wclass), wxWindow *wx_win, const char *title,
+ // Query app for menu item updates (called from OnIdle)
+ void DoMenuUpdates();
+ void DoMenuUpdates(wxMenu* menu, wxWindow* focusWin);
+
+ WXHMENU GetWinMenu() const ;
+
+ // Returns the origin of client area (may be different from (0,0) if the
+ // frame has a toolbar)
+ virtual wxPoint GetClientAreaOrigin() const;
+
+ // Implementation only from here
+ // event handlers
+ bool MSWOnPaint();
+ WXHICON MSWOnQueryDragIcon();
+ bool MSWOnSize(int x, int y, WXUINT flag);
+ bool MSWOnCommand(WXWORD id, WXWORD cmd, WXHWND control);
+ bool MSWOnMenuHighlight(WXWORD item, WXWORD flags, WXHMENU sysmenu);
+ bool MSWProcessMessage(WXMSG *msg);
+ bool MSWTranslateMessage(WXMSG *msg);
+ bool MSWCreate(int id, wxWindow *parent, const char *wclass,
+ wxWindow *wx_win, const char *title,