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
-
Specifies the type of information to be set:
- 0 specifies the cell which is displayed in the grid.
A value greater than 0 can be used by yourself.
flags
-
Specifies the update technique. This parameter is passed to RedrawRowCol.
- GX_UPDATENOW specifies to call UpdateWindow after invalidating the window.
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