Description | Hierarchy | Fields | Methods | Properties |
type unaWinClass = class(unaObject)
This class encapsulates the Windows class object.
![]() |
constructor create(const name: string = ''; style: unsigned = 0; icon: hIcon = 0; smallIcon: hIcon = 0; cursor: hCursor = 0; brBrush: hBrush = COLOR_WINDOW + 1; menuName: int = 0; instance: hModule = 0; force: bool = true); |
![]() |
constructor createStdClass(const name: string; instance: hModule = 0); |
![]() |
destructor Destroy(); override; |
![]() |
function callSubClassedWndProc(window: hWnd; message, wParam, lParam: int): int; |
![]() |
class function classIsRegistered(const className: string; instance: hModule = 0): bool; |
![]() |
function createSubclass(mainWnd: hWnd; newWndProc: pointer): bool; |
![]() |
function getAtom(): ATOM; |
![]() |
function getWndClassW(): pWNDCLASSEXW; |
![]() |
function registerClass(force: bool = true): ATOM; |
![]() |
procedure removeSubclass(); |
![]() |
procedure unregister(); |
![]() |
property atom: ATOM read f_atom; |
![]() |
property isCommon: bool read f_isCommon; |
![]() |
property subClassed: bool read f_wasSubclassed; |
![]() |
property wndClassW: TWNDCLASSEXW read f_wndClassW; |
![]() |
constructor create(const name: string = ''; style: unsigned = 0; icon: hIcon = 0; smallIcon: hIcon = 0; cursor: hCursor = 0; brBrush: hBrush = COLOR_WINDOW + 1; menuName: int = 0; instance: hModule = 0; force: bool = true); |
Creates and registers new Windows class. |
![]() |
constructor createStdClass(const name: string; instance: hModule = 0); |
Creates and registers new "standard" Windows class, such as BUTTON, EDIT and so on. |
![]() |
destructor Destroy(); override; |
![]() |
function callSubClassedWndProc(window: hWnd; message, wParam, lParam: int): int; |
Calls subclassed WndProc. |
![]() |
class function classIsRegistered(const className: string; instance: hModule = 0): bool; |
Returns true if class is already registered. |
![]() |
function createSubclass(mainWnd: hWnd; newWndProc: pointer): bool; |
Subclasses the Windows class. |
![]() |
function getAtom(): ATOM; |
Returns atom received after registering of class. Registers class if necessary. |
![]() |
function getWndClassW(): pWNDCLASSEXW; |
Returns pointer on WNDCLASSEX structure corresponding to this class. |
![]() |
function registerClass(force: bool = true): ATOM; |
Registers Windows class. |
![]() |
procedure removeSubclass(); |
Removes subclassing from the class. |
![]() |
procedure unregister(); |
Unregisters Windows class. |
![]() |
property atom: ATOM read f_atom; |
Returns atom received after registering of class. |
![]() |
property isCommon: bool read f_isCommon; |
Returns true if this Windows class is common or "standard" class (such as BUTTON, EDIT and so on). |
![]() |
property subClassed: bool read f_wasSubclassed; |
Returns true if this Windows class was subclassed. |
![]() |
property wndClassW: TWNDCLASSEXW read f_wndClassW; |
(c) 2012 Lake of Soft