#define MAX_DOCS 20
SHORT nViewCount;
IN_DOCWIN lDocwinIDs[MAX_DOCS];
/* Get the windows that contain views of the active document window */
if ( ( nError = IN_GetDocumentViewDocwins( 0, MAX_DOCS, &nViewCount, lDocwinIDs ) ) != IN_SUCCESS )
{
ErrorHandler( nError, "Error message:" );
}