Jump to content

WpRedrawCell: Difference between revisions

From EDM2
Created page with "{{DISPLAYTITLE:wpRedrawCell}} This instance method forces a palette object to repaint the specified cell area. ==Syntax== _wpRedrawCell(somSelf, pCell) ==Parameters== ;''somSelf'' (WPPalette *) - input :Pointer to the object on which the method is being invoked. :Points to an object of class WPPalette. ;''pCell'' (PCELL) - input :Pointer to the cell within the palette that needs repainting. ==Returns== ;''rc'' (BOOL) - returns :Success indicator. :*..."
 
No edit summary
 
Line 10: Line 10:
:Points to an object of class [[WPPalette]].
:Points to an object of class [[WPPalette]].


;''pCell'' ([[PCELL]]) - input
;''pCell'' (P[[CELL]]) - input
:Pointer to the cell within the palette that needs repainting.
:Pointer to the cell within the palette that needs repainting.



Latest revision as of 02:44, 17 November 2025

This instance method forces a palette object to repaint the specified cell area.

Syntax

_wpRedrawCell(somSelf, pCell)

Parameters

somSelf (WPPalette *) - input
Pointer to the object on which the method is being invoked.
Points to an object of class WPPalette.
pCell (PCELL) - input
Pointer to the cell within the palette that needs repainting.

Returns

rc (BOOL) - returns
Success indicator.
  • TRUE The method call was successful.
  • FALSE The method call was unsuccessful.

How to Override

Overriding this method is not recommended.

Usage

This method may be called at any time to force the palette object to repaint the specified cell in all of its currently open views.

Remarks

This method is used as cell values within the palette are altered. For example, when the color selector dialog is changing the color of a palette cell in the color palette, this method is invoked to refresh the color back in the open views of the color palette object.

Example Code

#define INCL_WINWORKPLACE
#include <os2.h>

WPPalette *somSelf; /* Pointer to the object on which the method is being invoked. */
PCELL *pCell; /* Pointer to the cell within the palette that needs repainting. */
BOOL rc; /* Success indicator. */

rc = _wpRedrawCell(somSelf, pCell);

Related Methods