<< Return to Main Index

< Return to Class Index

CGXGridCore::StoreRowHeight

virtual BOOL StoreRowHeight(ROWCOL nRow, int nHeight = 0);?

nRow

Specifies the row id. It is 0 for the row header.

nHeight

Specifies the height in pixels.

Return Value

TRUE if the value could be stored; it is FALSE if the value could not be stored.

Remarks

Overridable method which converts the value of the row-height for the specified row to a logical value and stores it into the row-heights-map of the parameter-object.

You can override this method if you want to maintain the data in your own classes. The library accesses the data through GetRowHeight.

If you do override this method, you should consider converting the pixel value to a logical value by calling Height_DPtoLP (see example), and you should also think of inserting and removing rows, if you want to support moving.

GX_NYHEIGHT (= 1000) is a constant which defines the logical height of a character.

See Also

CGXGridCore::GetColWidth

CGXGridCore

Class Overview | Class Members