|
|
|
|
Forum
Please
Log In
to post a new message or reply to an existing one. If you are not registered, please
register.
NOTE: Some forums may be read-only if you are not currently subscribed to
our technical support services.
Subject |
Author |
Date |
|
tera t
|
Aug 9, 2007 - 12:06 AM
|
Hello
When I do not want to make top outer cell width less than number of the identification dots. Should I use this order as follows?
ttp://profuis0.tripod.com/20070809/image01.jpg
INT CExtGridCellHeader2::OnMeasureBestFitExtent( CExtGridWnd * pWndGrid, // can be NULL CDC & dcMeasure, LONG nVisibleColNo, LONG nVisibleRowNo, LONG nColNo, LONG nRowNo, INT nColType, INT nRowType, bool bMeasuringColumnExtent ) const { ASSERT_VALID( this ); ASSERT( dcMeasure.GetSafeHdc() != NULL ); CSize _sizeMeasured = MeasureCell( pWndGrid, dcMeasure ); _sizeMeasured.cx = _sizeMeasured.cx + 16;
return bMeasuringColumnExtent ? _sizeMeasured.cx : _sizeMeasured.cy; }
|
|
Technical Support
|
Aug 9, 2007 - 8:17 AM
|
Yes, you are right. But please note your code will make all the columns wider, not only the sorted columns.
|
|
tera t
|
Aug 9, 2007 - 6:23 PM
|
Hello.
Is an argument of a Virtual function always a changed thing? (-_-;)
2.54 virtual INT OnMeasureBestFitExtent( CExtGridWnd * pWndGrid, // can be NULL CDC & dcMeasure, bool bMeasuringColumnExtent ) const;
2.7 , 2.64
virtual INT OnMeasureBestFitExtent( CExtGridWnd * pWndGrid, // can be NULL CDC & dcMeasure, LONG nVisibleColNo, LONG nVisibleRowNo, LONG nColNo, LONG nRowNo, INT nColType, INT nRowType, bool bMeasuringColumnExtent ) const;
|
|
Technical Support
|
Aug 10, 2007 - 5:37 AM
|
Typically we do not change the parameters of virtual functions. But sometimes when there is an absolute necessity, we have to change them. We are really sorry for this inconvenience.
|
|