Print Page | Close Window

Propertygrid in Taskpanel as group item

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=1421
Printed Date: 16 June 2024 at 4:25pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Propertygrid in Taskpanel as group item
Posted By: zagames
Subject: Propertygrid in Taskpanel as group item
Date Posted: 16 November 2004 at 10:40am

I created a property grid and loaded it into a taskpanel, however i can only see my grid when i close or expand the group item in the task panel.

Here is the code used.

CXTPPropertyGrid gexifInfo;

gexifInfo.Create(CRect(100,50,300,300),this,IDS_PHOTO_DETAILS);

gexifInfo.SetOwner(GetParentOwner());

PGroupExifInfo = m_controlPanel.FindGroup(ID_TASKGROUP_EXIF);

CXTPTaskPanelGroupItem* pItem = PGroupExifInfo->AddControlItem(gexifInfo);




Replies:
Posted By: zagames
Date Posted: 16 November 2004 at 11:33am

never mind, found the problem.  I was using the wrong parent window handle

changed

gexifInfo.Create(CRect(100,50,300,300),this,IDS_PHOTO_DETAILS);

 

to

gexifInfo.Create(CRect(100,50,300,300),&m_wndTaskpanel,IDS_PHOTO_DETAILS);




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