Jump to content

WpSelectCell: Difference between revisions

From EDM2
Created page with "{{DISPLAYTITLE:wpSelectCell}} This method is specific to version 3, or higher, of the OS/2 operating system. This instance method is called to select a given cell from a palette object. ==Syntax== wpSelectCell(somSelf, hwndPal, pCell) ==Parameters== ;''somSelf'' (WPPalette *) - input :Pointer to the object on which the method is being invoked. :Points to an object of class WPPalette. ;''hwndPal'' (HWND) - input :Palette window handle. ;''pCell'' (PCEL..."
 
No edit summary
 
Line 15: Line 15:
:Palette window handle.
:Palette window handle.


;''pCell'' ([[PCELL]]) - input
;''pCell'' (P[[CELL]]) - input
:Cell pointer.
:Cell pointer.



Latest revision as of 04:13, 25 November 2025

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

This instance method is called to select a given cell from a palette object.

Syntax

wpSelectCell(somSelf, hwndPal, pCell)

Parameters

somSelf (WPPalette *) - input
Pointer to the object on which the method is being invoked.
Points to an object of class WPPalette.
hwndPal (HWND) - input
Palette window handle.
pCell (PCELL) - input
Cell pointer.

Returns

This method has no return value.

How to Override

This method can be overridden by all subclasses that wish to perform actions when a cell is selected.

Example Code

#define INCL_WINWORKPLACE
#include <os2.h>

WPPalette *somSelf; /* Pointer to the object on which the method is being invoked. */
HWND hwndPal; /* Palette window handle. */
PCELL pCell; /* Cell pointer. */

_wpSelectCell(somSelf, hwndPal, pCell);

Related Methods