Jump to content

wpConfirmKeepAssoc

From EDM2

This method is specific to version 3, or higher, of the OS/2 operating system.

This instance method determines whether you want to rename the given file with different extensions and warns that associations might need to be fixed.

Syntax

_wpConfirmKeepAssoc(somSelf)

Parameters

somSelf (WPFileSystem *) - input
Pointer to the object on which the method is being invoked.
Points to an object of class WPFileSystem.

Returns

ulRename (ULONG) - returns
Flag indicating whether the user wants to rename the file.
Possible values are described in the following list:
  • KEEP_RENAMEFILESWITHEXT The file is renamed, and any associations are added to the menu page.
  • DISCARD_RENAMEFILESWITHEXT The file is renamed, and old associations are discarded (not added to the menu page).
  • CANCEL_RENAMEFILESWITHEXT The file is not renamed, and the title is not changed.

How to Override

This method is not covered in the provided text.

Usage

This method can be called only when confirmations are on and the extensions are different. It may be called by any class that wants to handle the prompting or overriding of return values.

Example Code

#define INCL_WINWORKPLACE
#include <os2.h>

WPFileSystem *somSelf; /* Pointer to the object on which the method is being invoked. */
ULONG ulRename; /* Flag indicating whether the user wants to rename the file. */

ulRename = _wpConfirmKeepAssoc(somSelf);

Related Methods