X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b9b3393e48488d37af26cd833ca435b87bc24d73..2b260bc3e2f269de090eefdaefc1450207a7734e:/include/wx/msw/window.h?ds=sidebyside diff --git a/include/wx/msw/window.h b/include/wx/msw/window.h index 6e654f53f1..487ad1e542 100644 --- a/include/wx/msw/window.h +++ b/include/wx/msw/window.h @@ -118,8 +118,8 @@ public: virtual void ScrollWindow( int dx, int dy, const wxRect* rect = (wxRect *) NULL ); - virtual void ScrollLines(int lines); - virtual void ScrollPages(int pages); + virtual bool ScrollLines(int lines); + virtual bool ScrollPages(int pages); #if wxUSE_DRAG_AND_DROP virtual void SetDropTarget( wxDropTarget *dropTarget ); @@ -347,8 +347,20 @@ public: // Calls an appropriate default window procedure virtual long MSWDefWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam); + + // message processing helpers + + // return FALSE if the message shouldn't be translated/preprocessed but + // dispatched normally + virtual bool MSWShouldPreProcessMessage(WXMSG* pMsg); + + // return TRUE if the message was preprocessed and shouldn't be dispatched virtual bool MSWProcessMessage(WXMSG* pMsg); + + // return TRUE if the message was translated and shouldn't be dispatched virtual bool MSWTranslateMessage(WXMSG* pMsg); + + // called when the window is about to be destroyed virtual void MSWDestroyWindow(); // Detach "Window" menu from menu bar so it doesn't get deleted @@ -442,8 +454,8 @@ private: // the helper functions used by HandleChar/KeyXXX methods wxKeyEvent CreateKeyEvent(wxEventType evType, int id, WXLPARAM lp) const; - DECLARE_DYNAMIC_CLASS(wxWindowMSW); - DECLARE_NO_COPY_CLASS(wxWindowMSW); + DECLARE_DYNAMIC_CLASS(wxWindowMSW) + DECLARE_NO_COPY_CLASS(wxWindowMSW) DECLARE_EVENT_TABLE() };