GetDocumentViewDocwins

image\bltlrgss.gif Editions  image\bltlrgss.gif Related Transactions  image\bltlrgss.gif Example

The same document can be viewed in multiple document windows. The GetDocumentViewDocwins transaction retrieves all of the document windows displaying views of the specified document.

Type  XTYP_REQUEST

Syntax [GetDocumentViewDocwins(docwinID)]

Parameter

Data type

Values

Meaning

docwinID

DWORD

0 | docwinID

active | specific

Reply

Data type

Values

Meaning

count

WORD

0

1, 2, 3, ...

none

number of windows displaying the document

docwinIDs

DWORD

docwinID1, docwinID2, ...

identifiers of the windows displaying the document

Remarks

You view a document in a second window by using the DuplicateDocwin or NewView transactions (Window, New). This transaction will tell you how many windows one instance of the document is viewed in. You can also open the same document twice, using the OpenDocwin transactions (File, Open). If a document is opened twice instead of being viewed in two or more windows, this transaction will return a value of 0.

Release information

Added in Release 4.32.

See also

Duplicating windows

Duplicating external document windows