CGXGridCore::StoreDefaultColWidth

virtual BOOL StoreDefaultColWidth(int nWidth);?

nWidth

Specifies the width 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 default value for the column-width to a logical value and assigns it to the corresponding attribute 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 GetDefaultColWidth.

If you do override this method, you should consider converting the pixel value to a logical value by calling Width_DPtoLP (see example to StoreColWidth).

See Also

 CGXGridCore::GetDefaultColWidth  CGXGridCore::StoreColWidth

CGXGridCore

 Class Overview |  Class Members