Check a control window to see if it is currently shown. Origin's control windows are those that you can access from the View menu, like Project Explorer, Script Window etc.
BOOL IsVisible( int nWinID = CWT_PROJECT_EXPLORER )
True when success, else false.
BOOL bOK = Project.IsVisible(); // return TRUE if Project Explorer is Open.