virtual void ScrollWindow( int dx, int dy,
const wxRect* rect = (wxRect *) NULL );
+ virtual bool ScrollLines(int lines);
+ virtual bool ScrollPages(int pages);
+
#if wxUSE_DRAG_AND_DROP
virtual void SetDropTarget( wxDropTarget *dropTarget );
#endif // wxUSE_DRAG_AND_DROP
// smaller
virtual wxPoint GetClientAreaOrigin() const;
- // Makes an adjustment to the window position (for example, a frame that has
- // a toolbar that it manages itself).
- virtual void AdjustForParentClientOrigin(int& x, int& y, int sizeFlags);
-
// Windows subclassing
void SubclassWin(WXHWND hWnd);
void UnsubclassWin();
// 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
virtual void DoSetToolTip( wxToolTip *tip );
#endif // wxUSE_TOOLTIPS
+ // the helper functions used by HandleChar/KeyXXX methods
+ wxKeyEvent CreateKeyEvent(wxEventType evType, int id, WXLPARAM lp) const;
+
private:
// common part of all ctors
void Init();
bool HandleNotify(int idCtrl, WXLPARAM lParam, WXLPARAM *result);
#endif // __WIN95__
- // 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()
};