<< Return to Main Index

< Return to Class Index

CGXGridCore::UpdateStyleRange

virtual void UpdateStyleRange(const CGXRange& range, const CGXStyle* pStyle = NULL, GXModifyType mt = gxOverride, int nType = 0, UINT flags = GX_INVALIDATE, BOOL bCreateHint = TRUE);?

range

A reference to a range-object specifying the cells to be changed. A range can be a range of cells, a range of rows, a range of columns or the whole table. (See the CGXRange class.)

pStyle

A pointer to a style-object which has been applied to the cells. This pointer can be NULL.

mt

Modify-Type: gxOverride, gxApplyNew, gxCopy or gxRemove (see the CGXStyle::ChangeStyle).

nType

A value greater than 0 can be used by yourself.

flags

GX_INVALIDATE and GX_SMART specify to simply invalidate the area.

bCreateHint

Specifies if a hint should be created.

Remarks

Overridable method which updates the window after changing cell formattings.

The method creates the following hint:

      CGXGridHint hint(gxHintUpdateStyleRange, m_nViewID);
      hint.range  = range;
      hint.pStyle = pStyle;
      hint.mt     = mt;
      hint.lParam = nType;
      hint.flags  = flags;

You can override this method if you need to change the hint.

See Also

CGXGridCore::SetZoom CGXGridHint

CGXGridCore

Class Overview | Class Members