Print Page | Close Window

How to add a CXTOutBarCtrl to 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=6056
Printed Date: 18 July 2025 at 9:50pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to add a CXTOutBarCtrl to TaskPanel
Posted By: zjroland
Subject: How to add a CXTOutBarCtrl to TaskPanel
Date Posted: 09 January 2007 at 11:00pm
I have a CXTOutBarCtrl m_softOutBarExpert
When I add a CXTOutBarCtrl to TaskPanel, I can't see CXTOutBarCtrl sometimes, even I found CXTOutBarCtrl , I click it,but nothing happen.
here is the code:
 
void CSoftView::OnInitialUpdate()
{
 CFormView::OnInitialUpdate();
 SetScrollSizes(MM_TEXT, CSize(0)); // Disable Scroll Bars;
 CXTPClientRect rc(this);
 rc.right = 180;
 rc.bottom = 500;
 m_wndTaskPanel.Create(WS_CHILD|WS_VISIBLE|WS_CLIPSIBLINGS|WS_CLIPCHILDREN, rc, this, 0);
 m_wndTaskPanel.SetTheme(xtpTaskPanelThemeNativeWinXPPlain);
 CXTPTaskPanelGroup* pGroupSoftExpert = m_wndTaskPanel.AddGroup(0);
pGroupSoftExpert->AddControlItem(m_softOutBarExpert);
}



Replies:
Posted By: Oleg
Date Posted: 10 January 2007 at 1:21am
Where you create m_softOutBarExpert ?

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


Posted By: zjroland
Date Posted: 10 January 2007 at 1:47am
void CSoftView::OnInitialUpdate()
{
 CFormView::OnInitialUpdate();
 SetScrollSizes(MM_TEXT, CSize(0)); // Disable Scroll Bars;
 CXTPClientRect rc(this);
 rc.right = 180;
 rc.bottom = 500;
 m_wndTaskPanel.Create(WS_CHILD|WS_VISIBLE|WS_CLIPSIBLINGS|WS_CLIPCHILDREN, rc, this, 0);
 m_wndTaskPanel.SetTheme(xtpTaskPanelThemeNativeWinXPPlain);
 CXTPTaskPanelGroup* pGroupSoftExpert = m_wndTaskPanel.AddGroup(0);
 
// OutlookBar Control
 if (!m_softOutBarExpert.Create(WS_CHILD|WS_VISIBLE, CRect(0,20,130,150), this,100, OBS_XT_DEFAULT))
 {
  TRACE0("Failed to create outlook bar.");
 }
pGroupSoftExpert->AddControlItem(m_softOutBarExpert);
}


Posted By: zjroland
Date Posted: 10 January 2007 at 2:00am
Oleg , below is source code, it's from your sample "TaskPanel", I only added a CXTOutBarCtrl  at SearchDlg.cpp
http://www.outsourcexp.com/TaskPanel.zip - http://www.outsourcexp.com/TaskPanel.zip http://www.outsourc -


Posted By: zjroland
Date Posted: 10 January 2007 at 2:13am
OK, I solved  this problem by myself
m_softOutBarExpert.Create(WS_CHILD|WS_VISIBLE, CRect(0,20,130,150), this,100, OBS_Xm_softOutBarExpert.Create(WS_CHILD|WS_VISIBLE, CRect(0,20,130,150), &m_wndTaskPanel,100, OBS_XT_DEFAULT))
T_DEFAULT))
then it's OK



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