Duplicating external document windows

 

You can place a copy of an image from an existing document window into an external document window. You can choose either duplicate or default view. This is not the same as opening a document twice. Instead, copying an image displays the same document in two windows.

To create a copy of a window with its default view:

1. Create your own window, and pass its handle to RegisterExternalWindow to get an external docwinID that corresponds to that handle.

2. Call the NewExternalView transaction, and set it to viewType 0 (default view).

3. Call the HandleExternalWindow to tell Imagenation to take control of the display in the document window.

The external window displays the specified document as it appeared when it first opened: on page 1, with the default view settings.

To place a duplicate copy of a window into an external window:

1. Create your own window, and pass its handle to RegisterExternalWindow to get an external docwinID that corresponds to that handle.

2. Call the NewExternalView transaction, and set it to viewType 1 (duplicate view).

3. Call the HandleExternalWindow to tell Imagenation to take control of the display in the document window.

The external window displays the image with the same page, scaling, rotation, inversion, mirroring, and position as the specified document window.

To request the number of document windows containing a view of a document window, use GetDocumentViewDocwins.

See also