HWND hWndExtApp;
IN_WINOBJ lExtDocWinID;
/* Note: This example assumes that hWndExtApp already contains the window handle from the external application. */
/* Register an external document window */
if ( ( nError = IN_RegisterExternalWindow( hWndExtApp, IN_EXTWIN_DOCUMENT, &lExtDocWinID ) ) != IN_SUCCESS )
{
ErrorHandler( nError, "Error message:" );
}
/* Allow zooming and scrolling in the external document window */
if ( ( nError = IN_HandleExternalWindow( lExtDocWinID, IN_EXTMODE_ZOOM | IN_EXTMODE_SCROLL ) ) == IN_SUCCESS )
{
ErrorHandler( nError, "Error message:" );
}