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
This commit is contained in:
@@ -87,10 +87,13 @@ LRESULT APIENTRY _EXPORT wxComboEditWndProc(HWND hWnd,
|
|||||||
|
|
||||||
switch ( message )
|
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_KEYUP:
|
||||||
case WM_KEYDOWN:
|
case WM_KEYDOWN:
|
||||||
case WM_CHAR:
|
case WM_CHAR:
|
||||||
|
case WM_SETFOCUS:
|
||||||
|
case WM_KILLFOCUS:
|
||||||
{
|
{
|
||||||
wxComboBox *combo = wxDynamicCast(win, wxComboBox);
|
wxComboBox *combo = wxDynamicCast(win, wxComboBox);
|
||||||
wxCHECK_MSG( combo, 0, _T("should have combo as parent") );
|
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:
|
case WM_KEYUP:
|
||||||
return HandleKeyUp(wParam, lParam);
|
return HandleKeyUp(wParam, lParam);
|
||||||
|
|
||||||
|
case WM_SETFOCUS:
|
||||||
|
return HandleSetFocus((WXHWND)wParam);
|
||||||
|
|
||||||
|
case WM_KILLFOCUS:
|
||||||
|
return HandleKillFocus((WXHWND)wParam);
|
||||||
}
|
}
|
||||||
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
Reference in New Issue
Block a user