Jump to content

wpQueryAssociatedFileIcon

From EDM2

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

This instance method returns the icon of the program associated with the current data file.

Syntax

_wpQueryAssociatedFileIcon(somSelf)

Parameters

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

Returns

hPointer (HPOINTER) - returns
Handle of the icon of the program with which the data file is associated.
A return value of **NULLHANDLE** indicates that there is no associated program icon.

Example Code

#define INCL_WINWORKPLACE
#include <os2.h>

WPDataFile *somSelf; /* Pointer to the object on which the method is being invoked. */
HPOINTER hPointer; /* Handle of the icon of the program with which the data file is associated. */

hPointer = _wpQueryAssociatedFileIcon(somSelf);

Related Methods