Create CXTPropertyGrid error! |
Post Reply |
Author | |
chinaren_shibo
Newbie Joined: 08 September 2005 Status: Offline Points: 1 |
Post Options
Thanks(0)
Posted: 04 October 2005 at 11:25am |
I need a CXTPPropertyGrid Control in a formview and hope to dock the formview So I create a CXTPPropertyGrid object in CSimpleFormView which is docked as a pane.But the codes doesn't work! The codes are as follows: void CSimpleFormView::OnInitialUpdate() { CFormView::OnInitialUpdate(); // TODO: Add your specialized code here and/or call the base class CRect rc; m_wndPlaceHolder.GetWindowRect( &rc ); ScreenToClient( &rc ); if (m_wndPropertyGrid.Create( rc, this, IDC_PROPERTY_GRID ) ) { CXTPPropertyGridItem* pSettings &nbs p; = m_wndPropertyGrid.AddCategory(_T("Stand Settings")); CXTPPropertyGridItem* pItem = pSettings->AddChildItem(new CXTPPropertyGridItemBool(_T("Video"), TRUE)); pSettings->AddChildItem(new CXTPPropertyGridItemBool(_T("Door"), TRUE)); pSettings->AddChildItem(new CXTPPropertyGridItemNumber(_T("Count"))); pSettings->Expand(); pItem->Select(); } } I use Xtreme Toolkit Pro v9.601 Windows2000. |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi, May be m_wndPlaceHolder is visible and Property Grid _under_ it. try to hide it m_wndPlaceHolder.ShowWindow(SW_HIDE); |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |