Changing the application visibility

Top  Previous  Next

To set and get the visibility of Inventor:

 

   // Obtain the 'Visible' property of the active application

   VARIANT_BOOL bVisible;

   Result = pInvApp->get_Visible(&bVisible);

   if (FAILED(Result)) return Result;

       

   if (bVisible != VARIANT_TRUE){

           pInvApp->Visible = VARIANT_TRUE ;

   }        

 

...though you may well still see a tiny icon of Inventor at the top left of your screen.

Text, images and diagrams © 2021 Owen F. Ransen. All rights reserved. (But copy the source code as much as you want!)