| 75 | } |
| 76 | |
| 77 | inline static Window Create(DWORD dwExStyle, const WindowClass &winClass, |
| 78 | Util::null_terminated_wstring_view windowName, DWORD dwStyle, int x = CW_USEDEFAULT, int y = CW_USEDEFAULT, |
| 79 | int nWidth = CW_USEDEFAULT, int nHeight = CW_USEDEFAULT, Window parent = Window::NullWindow, |
| 80 | HMENU hMenu = nullptr, void *lpParam = nullptr) noexcept |
| 81 | { |
| 82 | return CreateWindowEx(dwExStyle, winClass.atom(), windowName.c_str(), dwStyle, x, y, nWidth, nHeight, |
| 83 | parent, hMenu, winClass.hinstance(), lpParam); |
| 84 | } |
| 85 | |
| 86 | inline static std::optional<UINT> RegisterMessage(Util::null_terminated_wstring_view message) |
| 87 | { |