Add MSWGetFocusHWND to allow focus a subwindow

Under MSW allow override which subwindow will be focused for composite
windows which are implemented not as a set of wxControl (i.e. using only
Windows native controls).
This commit is contained in:
Ilya Sinitsyn
2019-11-01 00:19:53 +07:00
parent 53c5ebedca
commit 1b6dc0a2fb
3 changed files with 11 additions and 3 deletions

View File

@@ -168,6 +168,11 @@ 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)
virtual WXHWND MSWGetFocusHWND() const { return GetHWND(); }
// does this window have deferred position and/or size?
bool IsSizeDeferred() const;