Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - about child dialog in taskpanel
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

about child dialog in taskpanel

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


Joined: 01 June 2006
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote liang Quote  Post ReplyReply Direct Link To This Post Topic: about child dialog in taskpanel
    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.

Back to Top
Oleg View Drop Down
Senior Member
Senior Member


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: 01 June 2006 at 8:47am

HI,

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

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
liang View Drop Down
Newbie
Newbie


Joined: 01 June 2006
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote liang Quote  Post ReplyReply Direct Link To This Post 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

 

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