CGXGridCore::MarkEdit

virtual void MarkEdit(BOOL bShow, UINT direction = 0, UINT flags = GX_UPDATENOW);?

bShow

Specifies if the marking should be set or removed.

direction

Specifies the direction the current cell is moved. It can be either GX_HORZ for horizontal moving, GX_VERT for vertical moving or 0 for jumping to a new row and column. Used for optimization to hint that only one header or both headers need(s) to change.

flags

  • Specifies the update technique.

  • GX_UPDATENOW and GX_SMART specify to call UpdateWindow after invalidating each header.

GX_INVALIDATE specifies to simply invalidate the headers.

Remarks

Overridable method which draws the headers associated with the current cell in a pressed or depressed state. The method does not draw the cells, it simply invalidates them.

If you want to draw an arrow in the row-header for the current cell, you should consider subclassing CGXHeader, overriding the Draw method and registering the control with GX_IDS_CTRL_HEADER.

Control-Factory Specific ->

This method has been implemented using the abstraction mechanism as discussed in the chapter "Reducing the size of your application" in the user's guide. A call to the ImplementMarkEditHeader method from within the control factory class' InitializeGridComponents method will make the concrete implementation of this method available to your application.

If no concrete implementation is available this method performs no action.

END Control-Factory Specific

See Also

 CGXGridCore::SetCurrentCell  CGXHeader

CGXGridCore

 Class Overview |  Class Members