Subclass Function

Applies to:  Subclasser object
See also:  SubclassWindow Function, Method and Function Index

Unsubclasses the window currently subclassed by a Subclasser object, and then subclasses the window specified by hWnd.

Syntax:

success = object.Subclass(hWnd)

The SubClassWindow method syntax has these parts:

Part Description
success A variable to hole the return value of the function.  A return value of True indicates success.  A return value of False indicates failure.
object A variable to hold the returned reference.  Only one SubClasser is created for each window.  If the same window is subclassed multiple times by the same thread, there will be multiple references to the same SubClasser object.  Once all references to a SubClasser object go out of scope, that object will be terminated and the associated window will be unhooked.
hWnd A window handle.  This can be the hWnd property of a Visual Basic form, User Control, or other window owned by your application.

 

Home

Copyright and Disclaimer