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 18, 2008 - 1:23 AM
|
|
|
Technical Support
|
Mar 18, 2008 - 8:58 AM
|
You should invoke then following code after the property grid control is initialized: CExtPropertyGridCtrl & _PGC = . . .
CExtPropertyValue * pValueToSelect = . . .
CExtPropertyGridWnd * pActiveTreeGrid = _PGC.GetActiveGrid();
if( pActiveTreeGrid != NULL)
{
HTREEITEM hti = pActiveTreeGrid->PropertyItemToTreeItem( pValueToSelect );
if( hti != NULL )
pActiveTreeGrid->ItemFocusSet( hti );
} You can also set focus to the active tree grid window inside the property grid control to allow the user to perform keyboard navigation through property items. This can be done using pActiveTreeGrid->SetFocus();
|
|