Applies to: PowerPack object
See also: Subclasser Object, Subclass Function
Subclasses a window by creating a Subclasser
object, and returns a
reference to the SubClasser object that is created.
Syntax:
Set
object = SubClassWindow(hwnd)
The SubClassWindow method syntax has these parts:
Part |
Description |
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. |
Example:
Mouse Roll Over (Hard Way)
|