No changes, just fix a slightly misleading comment in wxMSW focus code.
DefWindowProc() never preserves the focused window actually, whether we use WM_NEXTDLGCTL (which is only handled by DefDlgProc() anyhow) or not. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@78360 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -371,10 +371,9 @@ WXLRESULT wxTopLevelWindowMSW::MSWWindowProc(WXUINT message, WXWPARAM wParam, WX
|
|||||||
// using the bitwise AND operator.
|
// using the bitwise AND operator.
|
||||||
unsigned id = wParam & 0xfff0;
|
unsigned id = wParam & 0xfff0;
|
||||||
|
|
||||||
// Preserve the focus when minimizing/restoring the window: we
|
// Preserve the focus when minimizing/restoring the window:
|
||||||
// need to do it manually as DefWindowProc() doesn't appear to
|
// surprisingly, DefWindowProc() doesn't do it automatically
|
||||||
// do this for us for some reason (perhaps because we don't use
|
// and so we need to it ourselves. Moreover, our code in
|
||||||
// WM_NEXTDLGCTL for setting focus?). Moreover, our code in
|
|
||||||
// OnActivate() doesn't work in this case as we receive the
|
// OnActivate() doesn't work in this case as we receive the
|
||||||
// deactivation event too late when the window is being
|
// deactivation event too late when the window is being
|
||||||
// minimized and the focus is already NULL by then. Similarly,
|
// minimized and the focus is already NULL by then. Similarly,
|
||||||
|
Reference in New Issue
Block a user