Name

CBT_CREATEWND

Synopsis

Contains information used by the WH_CBT hook when a window is created:

Public Type CBT_CREATEWND
	lpcs As CREATESTRUCT
	hWndInsertAfter As Long
End Type

Structure Members

lpcs

Pointer to a CREATESTRUCT structure, which is defined as follows:

Public Type CREATESTRUCT
lpCreateParams As Long
hInstance As Long
hMenu As Long
hWndParent As Long
cy As Long
cx As Long
y As Long
x As Long
style As Long
lpszName As String
lpszClass As String
ExStyle As Long
End Type
hWndInsertAfter

hWnd of the window whose position in the Z-order is to precede the window being created. You can modify hWndInsertAfter to change the position in the Z-order of the window that is being created.

Get Subclassing and Hooking with Visual Basic now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.