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
|
Mar 24, 2008 - 7:33 PM
|
Hello. I carry out the following order. void CMuPropertyGridWnd::BestFitColumnAll()
{
int iRec;
for ( iRec = 0 ; iRec < ColumnCountGet() ; iRec++ ){
BestFitColumn( iRec );
}
} It is not done Fit well.
")" is not displayed.

|
|
Technical Support
|
Mar 26, 2008 - 12:11 PM
|
The tree grid windows inside the property grid control are resizing their columns in its own manner. For example, if you want to make the property name column taking up 40% space and the property value column taking up 60% space: CExtPropertyGridCtrl & wndPGC = . . .
CTypedPtrArray < CPtrArray, CExtPropertyGridWnd * > arrGrids;
wndPGC.OnPgcQueryGrids( arrGrids );
INT nGridIdx;
for( nGridIdx = 0; nGridIdx < arrGrids.GetSize(); nGridIdx ++ )
{
CExtPropertyGridWnd * pPGW = arrGrids[ nGridIdx ];
ASSERT_VALID( pPGW );
pPGW->SetProportionalColumnWidth( 0.4 ); // 40%
}
|
|