From: Vadim Zeitlin Date: Thu, 11 Apr 2002 11:32:25 +0000 (+0000) Subject: generate the focus events for wxComboBox, also solves the tab navigation bugs X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/53c3a78b332746fbdbeb1a681edda54ef333b8d2 generate the focus events for wxComboBox, also solves the tab navigation bugs git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15090 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/combobox.cpp b/src/msw/combobox.cpp index f7c97122e1..aa72d70d57 100644 --- a/src/msw/combobox.cpp +++ b/src/msw/combobox.cpp @@ -87,10 +87,13 @@ LRESULT APIENTRY _EXPORT wxComboEditWndProc(HWND hWnd, switch ( message ) { - // forward some messages to the combobox + // forward some messages to the combobox to generate the appropriate + // wxEvents from them case WM_KEYUP: case WM_KEYDOWN: case WM_CHAR: + case WM_SETFOCUS: + case WM_KILLFOCUS: { wxComboBox *combo = wxDynamicCast(win, wxComboBox); wxCHECK_MSG( combo, 0, _T("should have combo as parent") ); @@ -196,6 +199,12 @@ bool wxComboBox::MSWProcessEditMsg(WXUINT msg, WXWPARAM wParam, WXLPARAM lParam) case WM_KEYUP: return HandleKeyUp(wParam, lParam); + + case WM_SETFOCUS: + return HandleSetFocus((WXHWND)wParam); + + case WM_KILLFOCUS: + return HandleKillFocus((WXHWND)wParam); } return FALSE;