Print Page | Close Window

about child dialog in taskpanel

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=4320
Printed Date: 10 November 2025 at 3:41pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: about child dialog in taskpanel
Posted By: liang
Subject: about child dialog in taskpanel
Date Posted: 01 June 2006 at 1:29am

in the demo "ToolBox",I add some code in order to add a child dialog in the taskpanel,but it can not display

CXTPTaskPanelGroup* pFolderWindows = m_wndTaskPanel.AddGroup (ID_TOOLBOXFOLDER_GENERAL);
 m_wndTaskPanel.SetTheme(xtpTaskPanelThemeNativeWinXPPl ain);
 CTaskPanelDlg m_dlgSize;  //the CTaskPanelDlg works well in the demo TaskPanel,
 m_dlgSize.Create(IDD_MYDLG, &m_wndTaskPanel);//IDD_MYDLG is the dialog resource with a child properte;
 CXTPTaskPanelGroupItem* pItem = pFolderWindows->AddControlItem(m_dlgSize);
 pItem->GetMargins().SetRect(0, 0, 0, 0);
 m_dlgSize.SetItem(pItem); pFolderWindows->SetE xpanded(TRUE);

maybe some mistake is made,but I don't know where.




Replies:
Posted By: Oleg
Date Posted: 01 June 2006 at 8:47am

HI,

May be you forgot to switch style of dialog to "child"...



-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: liang
Date Posted: 01 June 2006 at 11:00am

thx,I have solved the problem,

CTaskPanelDlg m_dlgSize; //here the object is a local variable,should be declared a member of CMainFrame

 




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