Applied patch #957479 (Combobox crashes receiving focus).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27382 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Neis
2004-05-21 09:35:18 +00:00
parent 405b7d914d
commit d804ec694d

View File

@@ -413,11 +413,6 @@ MRESULT EXPENTRY wxComboEditWndProc(
, MPARAM lParam , MPARAM lParam
) )
{ {
HWND hWndCombo;
wxWindow* pWin = NULL;
hWndCombo = ::WinQueryWindow(hWnd, QW_PARENT);
pWin = (wxWindow*)wxFindWinFromHandle((WXHWND)hWndCombo);
switch (uMessage) switch (uMessage)
{ {
// //
@@ -426,8 +421,8 @@ MRESULT EXPENTRY wxComboEditWndProc(
case WM_SETFOCUS: case WM_SETFOCUS:
case WM_CHAR: case WM_CHAR:
{ {
wxComboBox* pCombo = wxDynamicCast( pWin wxComboBox* pCombo = (wxComboBox *)::WinQueryWindowULong( hWnd
,wxComboBox ,QWL_USER
); );
if (pCombo->ProcessEditMsg( uMessage if (pCombo->ProcessEditMsg( uMessage