Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Docking Pane
  New Posts New Posts RSS Feed - Create CXTPropertyGrid error!
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Create CXTPropertyGrid error!

 Post Reply Post Reply
Author
Message
chinaren_shibo View Drop Down
Newbie
Newbie


Joined: 08 September 2005
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote chinaren_shibo Quote  Post ReplyReply Direct Link To This Post Topic: Create CXTPropertyGrid error!
    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.
 
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.172 seconds.