API Documentation > Windows and views > Object ProWindow > Function ProWindowCurrentClose
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:
Synopsis
#include <ProWindows.h>
ProWindowCurrentClose
(void)
Returns
The function successfully activated the window.
The function failed.
The Creo Parametric user interface is not prepared to handle this request (because it is blocked by another process such as an OLE container activation).
Sample Code References
User Guide References
Was this helpful?