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 |
|
Chris Jackson
|
Oct 18, 2005 - 4:17 AM
|
Is there an easy way to get the UpDown buttons always visible in a CExtGridCellVariant used in a property grid, rather than just when the cell is selected?
|
|
Technical Support
|
Oct 18, 2005 - 7:46 AM
|
Just apply the __EGWS_BSE_BUTTONS_PERSISTENT style to the CExtPropertyGridWnd . This will make all the cell buttons persistently visible. Here is a code snippet: CTypedPtrArray < CPtrArray, CExtPropertyGridWnd * > arrGrids;
m_PGC.OnPgcQueryGrids( arrGrids );
bool bCheck = m_checkGridLinesHorz.GetCheck() ? true : false;
INT nGridIdx = 0;
for( ; nGridIdx < arrGrids.GetSize(); nGridIdx ++ )
{
CExtPropertyGridWnd * pGrid = arrGrids[ nGridIdx ];
ASSERT_VALID( pGrid );
pGrid->BseModifyStyle(
__EGWS_BSE_BUTTONS_PERSISTENT,
__EGWS_BSE_MASK
);
}
|
|
Chris Jackson
|
Oct 18, 2005 - 9:17 AM
|
OK, that was simple. Thanks, probably should have spotted that ;-)
|
|