X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e58dab20ce995856303154a367bcca904066525c..f809133f9eb30d4746c71098bbc14c621b94ef0d:/src/os2/combobox.cpp?ds=sidebyside diff --git a/src/os2/combobox.cpp b/src/os2/combobox.cpp index fc4697b255..bea8d0e3de 100644 --- a/src/os2/combobox.cpp +++ b/src/os2/combobox.cpp @@ -102,7 +102,7 @@ bool wxComboBox::Create( ) { - if (!OS2CreateControl( pParent + if (!CreateControl( pParent ,vId ,rPos ,rSize @@ -143,10 +143,14 @@ bool wxComboBox::Create( // SetBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOW)); - SetFont(*wxSMALL_FONT); + wxFont* pTextFont = new wxFont( 10 + ,wxMODERN + ,wxNORMAL + ,wxNORMAL + ); + SetFont(*pTextFont); int i; - for (i = 0; i < n; i++) { Append(asChoices[i]); @@ -165,6 +169,7 @@ bool wxComboBox::Create( ,(PFNWP)wxComboEditWndProc ); ::WinSetWindowULong(GetHwnd(), QWL_USER, (ULONG)this); + delete pTextFont; return TRUE; } // end of wxComboBox::Create