CRegistry:SetWnd
The SetWnd method saves the handle to a GUI window to a Registry key. The handle of the window is obtained using the GetWnd of a class object, such as CPlotView.
CRegistry:SetWnd( sName, handle ) where sName is the name of the value being saved. handle is the handle to be saved. |
Note that the handle applies only to a specific window displayed on the Mira desktop. If you close the window for a handle and then create a new window of the same type, it will have a different handle value. Use this method when you want to fetch the handle of an existing window between scripts.
The following script opens the Registry section named "MySection" and saves a window handle under the key name "WindowHandle".
|
-- open the registry section "MySection" |
|
-- saves the value of handle to "WinHandle" |