#pragma hdrstop
#endif
+#include <windowsx.h>
+#include "wx/window.h"
+#include "wx/msw/private.h"
+
#ifndef WX_PRECOMP
- #include "wx/listbox.h"
- #include "wx/settings.h"
- #include "wx/brush.h"
- #include "wx/font.h"
- #include "wx/dc.h"
+#include "wx/listbox.h"
+#include "wx/settings.h"
+#include "wx/brush.h"
+#include "wx/font.h"
+#include "wx/dc.h"
#endif
-#include "wx/msw/private.h"
+#include "wx/dynarray.h"
+#include "wx/log.h"
-#include <windows.h>
-#include <windowsx.h>
+#if wxUSE_OWNER_DRAWN
+ #include "wx/ownerdrw.h"
+#endif
#ifndef __TWIN32__
#ifdef __GNUWIN32__
#endif
#endif
-#ifdef GetCharWidth
- #undef GetCharWidth
-#endif
-
-#if wxUSE_OWNER_DRAWN
- #include "wx/ownerdrw.h"
-#endif
-
-#include "wx/dynarray.h"
-#include "wx/log.h"
#if !USE_SHARED_LIBRARY
IMPLEMENT_DYNAMIC_CLASS(wxListBox, wxControl)
int height = size.y;
m_windowStyle = style;
- DWORD wstyle = WS_VSCROLL | WS_TABSTOP | LBS_NOTIFY | LBS_HASSTRINGS;
+ DWORD wstyle = WS_VISIBLE | WS_VSCROLL | WS_TABSTOP |
+ LBS_NOTIFY | LBS_HASSTRINGS;
if (m_windowStyle & wxLB_MULTIPLE)
wstyle |= LBS_MULTIPLESEL;
else if (m_windowStyle & wxLB_EXTENDED)