CImageView:GetHandle
The GetHandle method returns the handle of the GUI window attached to this CImageView object.
handle = CImageView:GetHandle() where |
handle is the handle of the GUI window. If the handle is not valid, nil is returned.
Note that the handle is a number that the operating system has assigned to a specific window. If you close the image window attached to this CImageView, then the handle is no longer valid.
The following script gets the handle of the image window attached to this CImageView object, V, and then saves it to the system Registry.
|
-- fetch the handle of the GUI window |
|
-- open the Registry section "ImageData" |
|
-- save the handle to the "ImageWindow" key |