IProgressDialog::HasUserCancelled method (shlobj_core.h)
Checks whether the user has canceled the operation.
Syntax
BOOL HasUserCancelled();
Return value
Type: BOOL
TRUE if the user has canceled the operation; otherwise, FALSE.
Remarks
The system does not send a message to the application when the user clicks the Cancel button. You must periodically use this function to poll the progress dialog box object to determine whether the operation has been canceled.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 2000 Professional, Windows XP [desktop apps only] |
Minimum supported server | Windows Server 2003 [desktop apps only] |
Target Platform | Windows |
Header | shlobj_core.h |
DLL | Shell32.dll (version 5.0 or later) |