|
Sowl
1.0
Simple Object Window Library
|
Builds a call to <a href"https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-registerclassw">RegisterClass. More...
#include <WindowClassRegisterer.h>
Public Member Functions | |
| WindowClassRegisterer (HINSTANCE processHandle, LPCWSTR className, WNDPROC windowProcedure) | |
| Initialize the builder with given parameters and defaults. More... | |
| HINSTANCE | ProcessHandle () const |
| LPCWSTR | ClassName () const |
| WindowClassRegisterer & | WithBackgroundBrush (HBRUSH handle) |
| WindowClassRegisterer & | WithCursor (HCURSOR handle) |
| WindowClassRegisterer & | WithIcon (HICON handle) |
| WindowClassRegisterer & | WithMenu (LPCWSTR name) |
| WindowClassRegisterer & | WithStyle (UINT style) |
| void | Register () const |
| If the class was not registered, register it. Otherwise, retrieve the registered class information. More... | |
Builds a call to <a href"https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-registerclassw">RegisterClass.
| WindowClassRegisterer::WindowClassRegisterer | ( | HINSTANCE | processHandle, |
| LPCWSTR | className, | ||
| WNDPROC | windowProcedure | ||
| ) |
Initialize the builder with given parameters and defaults.
| processHandle | Handle of the process where the window class to be registered must belongs to. |
| className | A valid window class name. |
| windowProcedure | A pointer to the window procedure. |
| void WindowClassRegisterer::Register | ( | ) | const |
If the class was not registered, register it. Otherwise, retrieve the registered class information.