![]() |
How to add a CXTOutBarCtrl to TaskPanel |
Post Reply
|
| Author | |
zjroland
Groupie
Joined: 09 December 2006 Status: Offline Points: 42 |
Post Options
Thanks(0)
Quote Reply
Topic: How to add a CXTOutBarCtrl to TaskPanelPosted: 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);
}
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 10 January 2007 at 1:21am |
|
Where you create m_softOutBarExpert ?
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
zjroland
Groupie
Joined: 09 December 2006 Status: Offline Points: 42 |
Post Options
Thanks(0)
Quote Reply
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);
}
|
|
![]() |
|
zjroland
Groupie
Joined: 09 December 2006 Status: Offline Points: 42 |
Post Options
Thanks(0)
Quote Reply
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
|
|
![]() |
|
zjroland
Groupie
Joined: 09 December 2006 Status: Offline Points: 42 |
Post Options
Thanks(0)
Quote Reply
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
|
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |