Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Property Grid
  New Posts New Posts RSS Feed - Crash when adding Category
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Crash when adding Category

 Post Reply Post Reply
Author
Message
fgorseth View Drop Down
Newbie
Newbie
Avatar

Joined: 15 October 2003
Location: Norway
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote fgorseth Quote  Post ReplyReply Direct Link To This Post Topic: Crash when adding Category
    Posted: 15 October 2003 at 7:55am

Hello.

I am trying to implement a PropertyGrid in a dialog in a MDI application. When I add a category to this PropertyGrid, the application is crashing (some ASSERT failure in the MFC library)...

BOOL CChunkBuilderMain::OnInitDialog()
{
  LPCTSTR  pCategory;
  int      iCatIndex;

 CDialog::OnInitDialog();

 CRect rc;
 m_chunkParamsPlaceHolder.GetWindowRect( &rc );
 ScreenToClient( &rc );

 // create the property grid.
 if ( m_wndPropertyGrid.Create( rc, this, IDC_PROPERTY_GRID ) )
 {
  LOGFONT lf;
  GetFont()->GetLogFont( &lf );

  // create document settings category.
    CXTPPropertyGridItem* pSettings = m_wndPropertyGrid.AddCategory("Document Settings");
  .....

}

Back to Top
kstowell View Drop Down
Admin Group
Admin Group


Joined: 25 January 2003
Location: MIchigan, USA
Status: Offline
Points: 496
Post Options Post Options   Thanks (0) Thanks(0)   Quote kstowell Quote  Post ReplyReply Direct Link To This Post Posted: 15 October 2003 at 11:01am

Hello,

Please take a look at the property grid dialog sample.  If you are still having problems send a small sample that recreates the problem to support@codejock.com, thanks.

Kind regards,
Codejock Support

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.219 seconds.