API 文件集 > Custom user interface > Object ProUIDialog > Function ProUIDialogCloseActionSet
Function ProUIDialogCloseActionSet
Description
Sets the close action for a dialog. This function is called when the user presses the close button in the window caption or issues Alt+F4. To close the dialog, the action can call ProUIDialogExit().
Synopsis
#include <ProUIDialog.h>
ProUIDialogCloseActionSet
(
char* dialog
/* (In)
The name of the dialog
*/
/* (In)
The action to be called on closing the dialog
*/
ProAppData appdata
/* (In)
User data to be passed to the action function. Can be NULL.
*/
)
Returns
The function was successful
The function failed
Sample Code References
這是否有幫助?