Print Page | Close Window

Crash when adding Category

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Property Grid
Forum Description: Topics Related to Codejock Property Grid
URL: http://forum.codejock.com/forum_posts.asp?TID=174
Printed Date: 28 November 2024 at 8:17am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Crash when adding Category
Posted By: fgorseth
Subject: Crash when adding Category
Date 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");
  .....

}




Replies:
Posted By: kstowell
Date 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 mailto:support@codejock.com - support@codejock.com , thanks.

Kind regards,
Codejock Support




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