Category Windows and views, Object ProWindow

Function ProWindowCurrentClose


Description
Closes the currently active window. This function duplicates the behavior of the Close pick on the Window pull-down menu from the menu bar.

If the current window is the original window created when Creo Parametric started, the function clears the window. Otherwise, the function removes the window from the screen.

NOTES:

  • Any work done since the last save will be lost.
  • This function does not take effect until control returns to Creo Parametric.
  • When a call is made to this function, the control should be returned to Creo Parametric to close the current window.
Replacement in Object TOOLKIT: pfcWindow::Close
Synopsis
#include <ProWindows.h>
ProErrorProWindowCurrentClose(void)
Returns
PRO_TK_NO_ERRORThe function successfully activated the window.
PRO_TK_GENERAL_ERRORThe function failed.
PRO_TK_E_DEADLOCKThe Creo Parametric user interface is not prepared to handle this request (because it is blocked by another process such as an OLE container activation).

Manual References:

  1. User Interface: Basic Graphics: Creating and Removing Windows
  2. User Interface: Basic Graphics: Creating and Removing Windows

Sample Code References:

  1. pt_examples ( TestDbms.c )