wpQueryConfirmations
Appearance
This instance method is called to determine which confirmations are set on this object.
Syntax
_wpQueryConfirmations(somSelf)
Parameters
- somSelf (WPObject *) - input
- Pointer to the object on which the method is being invoked.
- Points to an object of class WPObject.
Returns
- ulflag (ULONG) - returns
- Confirmation flags.
- NULL No confirmations set.
- CONFIRM_DELETE Prompt for confirmation for all objects.
- CONFIRM_DELETEFOLDER Prompt for confirmation for folder objects, only.
- CONFIRM_RENAMEFILESWITHEXT Prompt for confirmation when renaming files with extensions. For example, when the user renames a file with an EXE extension, the file will no longer be executable. The user should be prompted to confirm the name change.
- CONFIRM_KEEPASSOC Prompt for confirmation when renaming files with extensions that are used to associate a file with an application. For example, if the user has an association between an editor and the file extension DOC, and the user renames a DOC file to have a TXT extension, the file is no longer associated with the editor. The user should be prompted to confirm the name change.
- CONFIRM_ACTION Prompt for confirmation for copy and move operations and for creating shadows.
- CONFIRM_PROGRESS Display a dialog box that shows the progress being made in a copy, move, or create-shadow operation. The dialog box also has a Pause button that the user can use to control the progress of the operation.
- CONFIRM_ALLOWFORCEDELETE Allow forced deletion; must be set if CONFIRM_FORCEDELETE is set.
- CONFIRM_FORCEDELETE Prompt for confirmation of forced deletion.
Usage
This method can be called at any time in order to determine the confirmations set on an object.
How to Override
This method is generally not overridden.
Example Code
#define INCL_WINWORKPLACE #include <os2.h> WPObject *somSelf; /* Pointer to the object on which the method is being invoked. */ ULONG ulflag; /* Confirmation flags. */ ulflag = _wpQueryConfirmations(somSelf);