Category Windows and views, Object ProWindow

Function ProWindowDelete


Description
Closes a window and breaks the object-to-window attachment. The function deletes the window, if it is not the base window.

You cannot break the attachment for the currently active window. Use the function ProWindowCurrentSet() to make a different window be the current window before calling this function.

This function is equivalent to the Creo Parametric option to quit the window.

Replacement in Object TOOLKIT: pfcWindow::Close
Synopsis
#include <ProWindows.h>
ProErrorProWindowDelete(
int window_id
/* (In)
The window to delete
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully deleted the window.
PRO_TK_BAD_INPUTSThe argument is invalid.
PRO_TK_BAD_CONTEXTThe window you are trying to delete is the current window.
PRO_TK_GENERAL_ERRORA general error occurred and the function failed.
See Also
ProWindowCurrentSet

Manual References:

  1. Pro/DEVELOP to Creo Toolkit Function Mapping: Equivalent Pro/DEVELOP Functions
  2. User Interface: Basic Graphics: Repainting Windows
  3. User Interface: Basic Graphics: Creating and Removing Windows
  4. User Interface: Basic Graphics: Creating and Removing Windows

Sample Code References:

  1. pt_examples ( TestAsm.c )
  2. pt_examples ( TestDbms.c )
  3. pt_examples ( TestDbms.c )
  4. pt_examples ( TestDrwView.c )