Replace wxTextCtrl::MSWWindowProc() with MSWHandleMessage()

Override newer and more flexible virtual method: this doesn't change anything
yet but will allow to provide default handling for some messages in a single
overridden method in the future commits, when it would have required to also
override MSWDefWindowProc() with the old method.
This commit is contained in:
Vadim Zeitlin
2015-11-18 23:32:14 +01:00
parent 6b2a6baf2e
commit 9bcaa058a0
2 changed files with 23 additions and 7 deletions

View File

@@ -181,7 +181,10 @@ public:
void OnSetFocus(wxFocusEvent& event);
// intercept WM_GETDLGCODE
virtual WXLRESULT MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam);
virtual bool MSWHandleMessage(WXLRESULT *result,
WXUINT message,
WXWPARAM wParam,
WXLPARAM lParam);
virtual bool MSWShouldPreProcessMessage(WXMSG* pMsg);
virtual WXDWORD MSWGetStyle(long style, WXDWORD *exstyle) const;