Sowl  1.0
Simple Object Window Library
WindowHandleCreator.h
1 #pragma once
2 #include <Windows.h>
3 
4 namespace sowl
5 {
8  {
9  public:
10  WindowHandleCreator(HINSTANCE processHandle, LPCWSTR className);
11 
12  HINSTANCE ProcessHandle() const;
13  LPCWSTR ClassName() const;
14 
15  WindowHandleCreator& WithTitle(LPCWSTR title);
16  WindowHandleCreator& WithStyle(DWORD style);
17  WindowHandleCreator& AndStyle(DWORD style);
18  WindowHandleCreator& WithRect(int x, int y, int width, int height);
19  WindowHandleCreator& WithParent(HWND hParentWindow);
20  WindowHandleCreator& WithMenu(HMENU hMenu);
21  WindowHandleCreator& WithParams(LPVOID lpParam);
22  HWND Create() const;
23 
24  private:
25  CREATESTRUCT cp;
26  };
27 }
WindowHandleCreator(HINSTANCE processHandle, LPCWSTR className)
Initialize the builder with given parameters and defaults.
Definition: WindowHandleCreator.cpp:9
Builds a call to CreateWindowEx.
Definition: WindowHandleCreator.h:7