Ets_Tool_Close_Check_Callback_Register()
Note: Requires OPNET Development Kit
Abstract
Registers a function to be called when the user tries to close the current tool window.
Syntax
Ets_Tool_Close_Check_Callback_Register (close_check_callback_proc)
| Argument | Type | Description |
|---|---|---|
close_check_callback_proc |
EtsT_Tool_Close_Check_Callback |
Function called when the user tries to close the current tool window. |
Return Type
EtsT_Tool_Close_Check_Callback
The previous value of the tool window's close check procedure.
Header
ets_api_tool.h
Details
Before the application calls this function, it will call the "close check" function to determine whether it is OK to close the window without user interaction. If this function returns FALSE, the application might redraw or expand the tool window before calling the "close" procedure.
Returns the previous value of the tool window's close check procedure.
Because the callback function is being called directly by the application, caution should be taken in implementing it.