Sowl  1.0
Simple Object Window Library
WindowClassRegisterer.h
1 #pragma once
2 #include <Windows.h>
3 
4 namespace sowl
5 {
8  {
9  public:
10  WindowClassRegisterer(HINSTANCE processHandle, LPCWSTR className, WNDPROC windowProcedure);
11 
12  HINSTANCE ProcessHandle() const;
13  LPCWSTR ClassName() const;
14 
15  WindowClassRegisterer& WithBackgroundBrush(HBRUSH handle);
16  WindowClassRegisterer& WithCursor(HCURSOR handle);
17  WindowClassRegisterer& WithIcon(HICON handle);
18  WindowClassRegisterer& WithMenu(LPCWSTR name);
19  WindowClassRegisterer& WithStyle(UINT style);
20  void Register() const;
21 
22  private:
23  WNDCLASS wc;
24  };
25 }
void Register() const
If the class was not registered, register it. Otherwise, retrieve the registered class information...
Definition: WindowClassRegisterer.cpp:66
WindowClassRegisterer(HINSTANCE processHandle, LPCWSTR className, WNDPROC windowProcedure)
Initialize the builder with given parameters and defaults.
Definition: WindowClassRegisterer.cpp:10
Builds a call to <a href"https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-regis...
Definition: WindowClassRegisterer.h:7