CGridView:GetHandle


The GetHandle method returns the handle of the GUI window attached to this CGridView object.

Syntax

handle = CGridView: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 grid window attached to this CGridView, then the handle is no longer valid.

Example

The following script gets the handle of the grid window attached to this CGridView object, V, and then saves it to the system Registry.

handle = V:GetHandle()

-- fetch the handle of the GUI window

Reg = CRegistry:new("GridData")

-- open the Registry section "GridData"

Reg:SetWnd( "GridWindow", handle )

-- save the handle to the "GridWindow" key

Related Topics

AttachHandle

CGridView class

CRegistry:GetWnd