2 #include "../WindowHandleCreator.h"
7 template<
class TControl>
14 WithParent(parentWindow.GetHandle());
15 WithMenu((HMENU)(uintptr_t)
id);
19 inline ControlWindowCreator& WithTitle(LPCWSTR title) { WindowHandleCreator::WithTitle(title);
return *
this; }
20 inline ControlWindowCreator& AndStyle(DWORD style) { WindowHandleCreator::AndStyle(style);
return *
this; }
21 inline ControlWindowCreator& WithRect(
int x,
int y,
int width,
int height) { WindowHandleCreator::WithRect(x, y, width, height);
return *
this; }
22 inline ControlWindowCreator& WithParams(LPVOID lpParam) { WindowHandleCreator::WithParams(lpParam);
return *
this; }
23 inline HWND CreateHandle()
const {
return WindowHandleCreator::Create(); }
24 inline TControl Create()
const {
return TControl(WindowHandleCreator::Create()); }
HINSTANCE GetProcessHandle() const
Get the process handle (HINSTANCE) where the encapsulated handle window belongs to...
Definition: Window.cpp:72
Encapsulates a window handle.
Definition: Window.h:8
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
Definition: ControlWindowCreator.h:8