class CGXGridHint: public CObject

The CGXGridHint class is meant to be instantiated when views need to be updated after a change of the document. Instances of CGXGridHint are so-called “hint objects”.

The CGXGridCore class has several update-methods. Each update-method can create a hint object with a unique id specifying the update-method. Further attributes of the hint are filled with the parameters of the update-method and the view type. See m_id for hint-ids.

A hint is passed to CDocument::UpdateAllViews which passes the hint to each view by calling CView::OnUpdate.

CGXGridHint contains the following attributes:

  • UINTm_id;

  • int nViewID;

  • CGXRange range;

  • const CGXStyle* pStyle;

  • GXModifyType mt;

  • ROWCOL nRow1, nRow2, nRow3;

  • ROWCOL nCol1, nCol2, nCol3;

  • LONGlParam;

  • DWORDdwParam;

  • void* vptr;

  • UINTflags;

m_id and nViewID must be set. All others are optional.

See the corresponding update-methods to know which attributes they are using.

#include <gxall.h>

CGXGridHint

 Class Members