| 91 | } |
| 92 | |
| 93 | std::unique_ptr<Window> Window::CreateTabControl(int id) { |
| 94 | std::unique_ptr<Window> child(new Window(this, WC_TABCONTROL, L"")); |
| 95 | |
| 96 | // Get the dimensions of the parent window's client area, and |
| 97 | // create a tab control child window of that size. |
| 98 | RECT rc_client; |
| 99 | GetClientRect(handle_, &rc_client); |
| 100 | |
| 101 | child->Create(WS_CHILD | WS_CLIPSIBLINGS | WS_VISIBLE | WS_TABSTOP, 0, 0, |
| 102 | rc_client.right, 20, id); |
| 103 | |
| 104 | return child; |
| 105 | } |
| 106 | |
| 107 | std::unique_ptr<Window> Window::CreateList(int pos_x, int pos_y, int size_x, int size_y, |
| 108 | int id) { |