Refactor wxWindow::MSWHandleMessage() out from MSWWindowProc().
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 22 Jul 2011 12:49:22 +0000 (12:49 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 22 Jul 2011 12:49:22 +0000 (12:49 +0000)
commit2e1cee233eb64ddf4855970b93f276c5709e2eec
tree697c9298e1d9c8ba7b6a24c4c1b10df3442e3af4
parent41936464fd460f5f66db75c82672af9870e47e5f
Refactor wxWindow::MSWHandleMessage() out from MSWWindowProc().

This commit just refactors the code without changing anything in its
behaviour and will be followed by the real changes in the next one.

The new function just handles the message, without calling MSWDefWindowProc()
if it wasn't handled. This allows to call it and determine whether the message
was really handled and only continue processing it if it wasn't.

Notice that while in theory this shouldn't be necessary because the return
value of MSWWindowProc() should indicate whether the message was handled or
not (0 meaning that it was, for most messages), in practice it doesn't work
because many standard controls window procs return 0 even for message they do
nothing with, e.g. "up down" control always returns 0 for WM_CHAR messages
even it it only really handles the arrow keys.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68327 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
include/wx/msw/window.h
src/msw/window.cpp