#include "wx/wxprec.h"
#ifndef WX_PRECOMP
-#include "wx/setup.h"
+ #include "wx/setup.h"
+ #include "wx/settings.h"
#endif
#if wxUSE_COMBOBOX
)
{
- if (!OS2CreateControl( pParent
+ if (!CreateControl( pParent
,vId
,rPos
,rSize
// A choice/combobox normally has a white background (or other, depending
// on global settings) rather than inheriting the parent's background colour.
//
- SetBackgroundColour(wxSystemSettings::GetSystemColour(wxSYS_COLOUR_WINDOW));
+ SetBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOW));
- SetFont(pParent->GetFont());
+ wxFont* pTextFont = new wxFont( 10
+ ,wxMODERN
+ ,wxNORMAL
+ ,wxNORMAL
+ );
+ SetFont(*pTextFont);
int i;
-
for (i = 0; i < n; i++)
{
Append(asChoices[i]);
gfnWndprocEdit = (WXFARPROC)::WinSubclassWindow( (HWND)GetHwnd()
,(PFNWP)wxComboEditWndProc
);
+ ::WinSetWindowULong(GetHwnd(), QWL_USER, (ULONG)this);
+ delete pTextFont;
return TRUE;
} // end of wxComboBox::Create