Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - How to add a CXTOutBarCtrl to TaskPanel
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to add a CXTOutBarCtrl to TaskPanel

 Post Reply Post Reply
Author
Message
zjroland View Drop Down
Groupie
Groupie


Joined: 09 December 2006
Status: Offline
Points: 42
Post Options Post Options   Thanks (0) Thanks(0)   Quote zjroland Quote  Post ReplyReply Direct Link To This Post Topic: How to add a CXTOutBarCtrl to TaskPanel
    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);
}
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


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: 10 January 2007 at 1:21am
Where you create m_softOutBarExpert ?
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
zjroland View Drop Down
Groupie
Groupie


Joined: 09 December 2006
Status: Offline
Points: 42
Post Options Post Options   Thanks (0) Thanks(0)   Quote zjroland Quote  Post ReplyReply Direct Link To This Post 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);
}
Back to Top
zjroland View Drop Down
Groupie
Groupie


Joined: 09 December 2006
Status: Offline
Points: 42
Post Options Post Options   Thanks (0) Thanks(0)   Quote zjroland Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
zjroland View Drop Down
Groupie
Groupie


Joined: 09 December 2006
Status: Offline
Points: 42
Post Options Post Options   Thanks (0) Thanks(0)   Quote zjroland Quote  Post ReplyReply Direct Link To This Post 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
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.188 seconds.