Print Page | Close Window

Create CXTPropertyGrid error!

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Docking Pane
Forum Description: Topics Related to Codejock Docking Pane
URL: http://forum.codejock.com/forum_posts.asp?TID=3002
Printed Date: 12 December 2024 at 3:40am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Create CXTPropertyGrid error!
Posted By: chinaren_shibo
Subject: Create CXTPropertyGrid error!
Date 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.
 



Replies:
Posted By: Oleg
Date Posted: 05 October 2005 at 12:00am

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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net