projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
old compilation fix for AIX from Ian Brown
[wxWidgets.git]
/
src
/
os2
/
combobox.cpp
diff --git
a/src/os2/combobox.cpp
b/src/os2/combobox.cpp
index 8b0980688b1473f9a109cc2070b86cb452273175..651dfe9209e79f0b2b1d1ceaeaee6621b05740cd 100644
(file)
--- a/
src/os2/combobox.cpp
+++ b/
src/os2/combobox.cpp
@@
-101,8
+101,9
@@
bool wxComboBox::Create(
, const wxString& rsName
)
{
, const wxString& rsName
)
{
+ m_isShown = FALSE;
- if (!
OS2
CreateControl( pParent
+ if (!CreateControl( pParent
,vId
,rPos
,rSize
,vId
,rPos
,rSize
@@
-143,12
+144,7
@@
bool wxComboBox::Create(
//
SetBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOW));
//
SetBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOW));
- wxFont* pTextFont = new wxFont( 10
- ,wxMODERN
- ,wxNORMAL
- ,wxNORMAL
- );
- SetFont(*pTextFont);
+ SetFont(*wxSMALL_FONT);
int i;
for (i = 0; i < n; i++)
int i;
for (i = 0; i < n; i++)
@@
-169,7
+165,7
@@
bool wxComboBox::Create(
,(PFNWP)wxComboEditWndProc
);
::WinSetWindowULong(GetHwnd(), QWL_USER, (ULONG)this);
,(PFNWP)wxComboEditWndProc
);
::WinSetWindowULong(GetHwnd(), QWL_USER, (ULONG)this);
-
delete pTextFont
;
+
Show(TRUE)
;
return TRUE;
} // end of wxComboBox::Create
return TRUE;
} // end of wxComboBox::Create
@@
-403,22
+399,29
@@
bool wxComboBox::ProcessEditMsg(
switch(vFlag)
{
case KC_CHAR:
switch(vFlag)
{
case KC_CHAR:
- return (HandleChar(
SHORT1FROMMP(wParam)
+ return (HandleChar(
wParam
,lParam
,TRUE /* isASCII */
));
case KC_PREVDOWN:
,lParam
,TRUE /* isASCII */
));
case KC_PREVDOWN:
- return (HandleKeyDown(
SHORT1FROMMP(wParam)
+ return (HandleKeyDown(
wParam
,lParam
));
case KC_KEYUP:
,lParam
));
case KC_KEYUP:
- return (HandleKeyUp(
SHORT1FROMMP(wParam)
+ return (HandleKeyUp(
wParam
,lParam
));
}
break;
,lParam
));
}
break;
+
+ case WM_SETFOCUS:
+ if (SHORT1FROMMP((MPARAM)lParam) == TRUE)
+ return(HandleSetFocus((WXHWND)(HWND)wParam));
+ else
+ return(HandleKillFocus((WXHWND)(HWND)wParam));
+ break;
}
return FALSE;
} // end of WinGuiBase_CComboBox::ProcessEditMsg
}
return FALSE;
} // end of WinGuiBase_CComboBox::ProcessEditMsg
@@
-440,6
+443,7
@@
MRESULT EXPENTRY wxComboEditWndProc(
//
// Forward some messages to the combobox
//
//
// Forward some messages to the combobox
//
+ case WM_SETFOCUS:
case WM_CHAR:
{
wxComboBox* pCombo = wxDynamicCast( pWin
case WM_CHAR:
{
wxComboBox* pCombo = wxDynamicCast( pWin