X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a23fd0e1d1329a4a258b4defb3e0b0001b700c6e..de5ae7c6e6bd3ac764d3552a9e6fd4a287f01299:/src/msw/listbox.cpp diff --git a/src/msw/listbox.cpp b/src/msw/listbox.cpp index 4ca6a3955b..994f8e8f9b 100644 --- a/src/msw/listbox.cpp +++ b/src/msw/listbox.cpp @@ -39,10 +39,6 @@ #endif #endif -#ifdef GetCharWidth - #undef GetCharWidth -#endif - #if wxUSE_OWNER_DRAWN #include "wx/ownerdrw.h" #endif @@ -165,7 +161,8 @@ bool wxListBox::Create(wxWindow *parent, 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)