| Optional. A Long value. The target WindowNumber of the McWindow to get. If the default value of -1, then any string NameImageOrIndex argument is treated as the McWindow.Name property of the McWindow instance to return. If the NameImageOrIndex argument is a numeric value then this argument is ignored.
Otherwise, this argument is the target McWindow.WindowNumber property of the desired McWindow. A value of -1, 0 or 1, will always return the first (or only) window associated with the McWindow.View.ImageToDisplay given by the NameImageOrIndex argument. The McImage.WindowNumber of this first window will be either 0 (there is only one McWindow displaying the image) or 1 (there are more than one windows displaying the image).
The constant mcLastWindowNumber, or any large number, can be given to indicate that the last McWindow associated with the NameImageOrIndex argument should be returned. Other than interating through all of the windows, this is the only way to find out how many windows are open displaying a given image (see Example 2).
|