| 154 | } |
| 155 | |
| 156 | std::unique_ptr<Window> Window::CreateCheckBox(int pos_x, int pos_y, int size_x, |
| 157 | int size_y, const wchar_t* title, int id, |
| 158 | bool state) { |
| 159 | std::unique_ptr<Window> child(new Window(this, L"Button", title)); |
| 160 | |
| 161 | child->Create(WS_CHILD | WS_VISIBLE | BS_CHECKBOX | WS_TABSTOP, pos_x, pos_y, size_x, |
| 162 | size_y, id); |
| 163 | |
| 164 | child->SetChecked(state); |
| 165 | |
| 166 | return child; |
| 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) { |
nothing calls this directly
no test coverage detected