| 167 | } |
| 168 | |
| 169 | std::unique_ptr<Window> Window::CreateComboBox(int pos_x, int pos_y, int size_x, |
| 170 | int size_y, const wchar_t* title, int id) { |
| 171 | std::unique_ptr<Window> child(new Window(this, L"Combobox", title)); |
| 172 | |
| 173 | child->Create(WS_CHILD | WS_VISIBLE | CBS_DROPDOWNLIST | WS_TABSTOP, pos_x, pos_y, |
| 174 | size_x, size_y, id); |
| 175 | |
| 176 | return child; |
| 177 | } |
| 178 | |
| 179 | void Window::Show() { ShowWindow(handle_, SW_SHOW); } |
| 180 |