diff --git a/src/msw/listctrl.cpp b/src/msw/listctrl.cpp index 3086c45c9b..abfcab36db 100644 --- a/src/msw/listctrl.cpp +++ b/src/msw/listctrl.cpp @@ -304,10 +304,11 @@ bool wxListCtrl::DoCreateControl(int x, int y, int w, int h) DWORD wstyle = m_baseStyle; WXDWORD exStyle = 0; - (void) MSWGetStyle(GetWindowStyle(), & exStyle) ; + WXDWORD standardStyle = MSWGetStyle(GetWindowStyle(), & exStyle) ; long oldStyle = 0; // Dummy wstyle |= ConvertToMSWStyle(oldStyle, m_windowStyle); + wstyle |= standardStyle; // Create the ListView control. m_hWnd = (WXHWND)CreateWindowEx(exStyle,