Window.assignHandle

Overview | Methods | This Package | All Packages

Window.assignHandle

Assigns a handle to a Window object.

Syntax

public void assignHandle( int handle )

Parameters

handle

The handle to assign to this object.

Exceptions

WFCException exception thrown if the Window object already has a handle.

Remarks

A handle passed as a parameter to assignHandle is subclassed so that any window messages sent to the handle are intercepted by the wndProc method. The handle can be un-subclassed later using the releaseHandle method, in effect restoring the handle's window procedure to its former value. The assignHandle method calls the onHandleChange method to indicate that the value of the handle has changed.

See Also   wndProc, releaseHandle, onHandleChange