summaryrefslogtreecommitdiffstats
path: root/views/controls/combobox/native_combobox_win.cc
diff options
context:
space:
mode:
Diffstat (limited to 'views/controls/combobox/native_combobox_win.cc')
-rw-r--r--views/controls/combobox/native_combobox_win.cc6
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 43e1979..dee1108 100644
--- a/views/controls/combobox/native_combobox_win.cc
+++ b/views/controls/combobox/native_combobox_win.cc
@@ -136,6 +136,10 @@ void NativeComboboxWin::SetFocus() {
Focus();
}
+gfx::NativeView NativeComboboxWin::GetTestingHandle() const {
+ return native_view();
+}
+
////////////////////////////////////////////////////////////////////////////////
// NativeComboboxWin, NativeControlWin overrides:
@@ -158,7 +162,7 @@ void NativeComboboxWin::CreateNativeControl() {
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(),
+ flags, 0, 0, width(), height(),
GetWidget()->GetNativeView(), NULL, NULL,
NULL);
NativeControlCreated(control_hwnd);