Many API calls act on document windows. The docwinID variable is the most common in the DDE API. docwinID is a unique identifier that is assigned to every document window. It is the first parameter for any transaction that acts upon a specific document window, and it is returned when you request the identifier of the active window or open a new window as an XTYP_REQUEST.
The following table shows what transaction to use to get specific information.
|
Information |
Transaction |
|
A document's window identifier |
|
|
A document's window handle, given its document window identifier |
|
|
A document window's identifier, given its window handle |
To find out how many document windows are open:
· Use the GetNumberDocwins transaction to just get the number of open document windows.
· Use GetDocwins to get the number of open windows and a list of their identifiers.
See also