Show: Delphi C++
Display Preferences

System.Classes.AllocateHWnd

From XE2 API Documentation
Jump to: navigation, search

Delphi

function AllocateHWnd(AMethod: TWndMethod): HWND;

C++

extern PACKAGE HWND __fastcall AllocateHWnd(TWndMethod AMethod);

Contents

Properties

Type Visibility Source Unit Parent
function public
System.Classes.pas
System.Classes.hpp
System.Classes System.Classes

Description

Creates a window that implements a specified window procedure.

Call AllocateHWnd to create a window that is not associated with a windowed control. Typically, this method is used to create non-visual windows that respond to messages but that do not appear in the user interface. For example, the TTimer component uses this method to create a window that responds to timer messages from Windows.

The Method parameter specifies the window procedure that the generated window uses to respond to messages.

AllocateHWnd returns the handle of the newly created window.

Note: Use the DeallocateHWnd procedure to free windows that are created using AllocateHWnd.

See Also

Code Examples


Personal tools
Previous Versions
Translations