Name

RegisterClassEx

Synopsis

Registers a new windows class so that it can be used in subsequent window creation:

Public Declare Function RegisterClassEx Lib "user32" _
		Alias "RegisterClassExA" _
		(pcWndClassEx As WNDCLASSEX) As Integer

Parameters

pcWndClassEx

A pointer to the WNDCLASSEX structure

Return Value

Returns a class atom, which is a unique identifier to the newly registered class. A return value of indicates failure.

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.