Sowl  1.0
Simple Object Window Library
sowl::WindowHandleCreator Class Reference

Builds a call to CreateWindowEx. More...

#include <WindowHandleCreator.h>

Inheritance diagram for sowl::WindowHandleCreator:
sowl::ControlWindowCreator< TControl >

Public Member Functions

 WindowHandleCreator (HINSTANCE processHandle, LPCWSTR className)
 Initialize the builder with given parameters and defaults. More...
 
HINSTANCE ProcessHandle () const
 
LPCWSTR ClassName () const
 
WindowHandleCreator & WithTitle (LPCWSTR title)
 
WindowHandleCreator & WithStyle (DWORD style)
 
WindowHandleCreator & AndStyle (DWORD style)
 
WindowHandleCreator & WithRect (int x, int y, int width, int height)
 
WindowHandleCreator & WithParent (HWND hParentWindow)
 
WindowHandleCreator & WithMenu (HMENU hMenu)
 
WindowHandleCreator & WithParams (LPVOID lpParam)
 
HWND Create () const
 

Detailed Description

Builds a call to CreateWindowEx.

Constructor & Destructor Documentation

WindowHandleCreator::WindowHandleCreator ( HINSTANCE  processHandle,
LPCWSTR  className 
)

Initialize the builder with given parameters and defaults.

Parameters
processHandleHandle of the process where the window to be created must belongs to.
classNameName of a valid registered window class.
Returns
A builder. If parameters are valid, an inmediate call to Build() must return a valid created window.

The documentation for this class was generated from the following files: