User's Guide > Windows and Views > Getting a Window Object
Getting a Window Object
 
Methods Introduced:
The method pfcBaseSession::GetCurrentWindow provides access to the current active window in Creo application.
The method pfcBaseSession::CreateModelWindow creates a new window that contains the model that was passed as an argument.
* 
You must call the method pfcModel::Display for the model geometry to be displayed in the window.
Use the method pfcBaseSession::ListWindows to get a list of all the current windows in session.
The method pfcBaseSession::GetWindow gets the handle to a window given its integer identifier.
The method pfcBaseSession::OpenFile returns the handle to a newly created window that contains the opened model.
* 
If a model is already open in a window the method returns a handle to the window.
The method pfcBaseSession::GetModelWindow returns the handle to the window that contains the opened model, if it is displayed.
Was this helpful?