IN_DOCWIN lDocwinID;
/* Get the active document window ID */
if ( ( nError = IN_GetActiveDocumentWindow( &lDocwinID ) ) != IN_SUCCESS )
{
ErrorHandler( nError, "Error message:" );
}