From c0d992cf674042105b1a07f746aa9a8fd1ca28db Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 31 Oct 2019 23:58:21 +0100 Subject: [PATCH] Improve wording of MSWGetFocusHWND() comment No real changes, just try to explain what this function is for better. --- include/wx/msw/window.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/include/wx/msw/window.h b/include/wx/msw/window.h index 306cd814da..2ee4558b94 100644 --- a/include/wx/msw/window.h +++ b/include/wx/msw/window.h @@ -168,9 +168,10 @@ public: void AssociateHandle(WXWidget handle) wxOVERRIDE; void DissociateHandle() wxOVERRIDE; - // returns the handle of the focused window (i.e. in composite windows - // which can't be implemented via a set of wxControl's focus may be wanted - // by a subwindow instead of the main window) + // returns the handle of the native window to focus when this wxWindow gets + // focus (i.e. in composite windows: by default, this is just the HWND for + // this window itself, but it can be overridden to return something + // different for composite controls virtual WXHWND MSWGetFocusHWND() const { return GetHWND(); } // does this window have deferred position and/or size?