Jump to content

WpSetupCell: Difference between revisions

From EDM2
Created page with "{{DISPLAYTITLE:wpSetupCell}} This instance method is called to initialize a cell. ==Syntax== _wpSetupCell(somSelf, pCellData, cb, x, y) ==Parameters== ;''somSelf'' (WPPalette *) - input :Pointer to the object on which the method is being invoked. :Points to an object of class WPPalette. ;''pCellData'' (PVOID) - input :Pointer to the data to be stored. ;''cb'' (ULONG) - input :Size of the data to be stored. ;''x'' (ULONG) - input :X-coordinate of..."
 
(No difference)

Latest revision as of 02:47, 17 November 2025

This instance method is called to initialize a cell.

Syntax

_wpSetupCell(somSelf, pCellData, cb, x, y)

Parameters

somSelf (WPPalette *) - input
Pointer to the object on which the method is being invoked.
Points to an object of class WPPalette.
pCellData (PVOID) - input
Pointer to the data to be stored.
cb (ULONG) - input
Size of the data to be stored.
x (ULONG) - input
X-coordinate of the cell to be set up.
y (ULONG) - input
Y-coordinate of the cell to be set up.

Returns

rc (BOOL) - returns
Success indicator.
  • TRUE Successful completion.
  • FALSE Error occurred.

How to Override

This method is generally not overridden.

Usage

This method can be called at any time in order to initialize a cell.

Example Code

#define INCL_WINWORKPLACE
#include <os2.h>

WPPalette *somSelf; /* Pointer to the object on which the method is being invoked. */
PVOID pCellData; /* Pointer to the data to be stored. */
ULONG cb; /* Size of the data to be stored. */
ULONG x; /* X-coordinate of the cell to be set up. */
ULONG y; /* Y-coordinate of the cell to be set up. */
BOOL rc; /* Success indicator. */

rc = _wpSetupCell(somSelf, pCellData, cb,
        x, y);