diff options
Diffstat (limited to 'views')
-rw-r--r-- | views/controls/combobox/native_combobox_win.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/views/controls/combobox/native_combobox_win.cc b/views/controls/combobox/native_combobox_win.cc index 8bc53e0..43e1979 100644 --- a/views/controls/combobox/native_combobox_win.cc +++ b/views/controls/combobox/native_combobox_win.cc @@ -152,7 +152,11 @@ bool NativeComboboxWin::ProcessMessage(UINT message, } void NativeComboboxWin::CreateNativeControl() { - DWORD flags = WS_CHILD | WS_CLIPSIBLINGS | WS_CLIPCHILDREN | CBS_DROPDOWNLIST; + // It's ok to add WS_VSCROLL. The scrollbar will show up only when necessary + // as long as we don't use CBS_DISABLENOSCROLL. + // See http://msdn.microsoft.com/en-us/library/7h63bxbe(VS.80).aspx + DWORD flags = WS_CHILD | WS_CLIPSIBLINGS | WS_CLIPCHILDREN | + CBS_DROPDOWNLIST | WS_VSCROLL; HWND control_hwnd = ::CreateWindowEx(GetAdditionalExStyle(), L"COMBOBOX", L"", flags, 0, 0, 100, 20, //width(), height(), GetWidget()->GetNativeView(), NULL, NULL, |