| 144 | } |
| 145 | |
| 146 | std::unique_ptr<Window> Window::CreateButton(int pos_x, int pos_y, int size_x, int size_y, |
| 147 | const wchar_t* title, int id, int style) { |
| 148 | std::unique_ptr<Window> child(new Window(this, L"Button", title)); |
| 149 | |
| 150 | child->Create(WS_CHILD | WS_VISIBLE | WS_TABSTOP | style, pos_x, pos_y, size_x, size_y, |
| 151 | id); |
| 152 | |
| 153 | return child; |
| 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, |