CPlotView:GetWnd
The GetWnd method returns the handle of the plot window attached to this CPlotView object. You can save the window handle to the system registry using the CRegistry:SetWnd method. Use this technique with CRegistry:GetWnd for saving and restoring the handle of a window between scripts.
handle = CPlotView:GetWnd() |
On success, this method returns a handle to a plot window, not to this CPlotView object.
On failure, this method returns nil.
The window handle applies only to a specific Plot window displayed on the Mira desktop. If you close a plot window and create a new plot window, the new window will have a different handle value. Use this method when you want to fetch the handle of an existing plot window saved by a previous script during which time the plot window remained open.