![]() |
TaskPanel with DockingPane |
Post Reply
|
| Author | |
MeikeT
Newbie
Joined: 19 December 2007 Status: Offline Points: 2 |
Post Options
Thanks(0)
Quote Reply
Topic: TaskPanel with DockingPanePosted: 19 December 2007 at 2:35am |
|
Hi,
I'm trying to add a fixed CXTPTaskPanel inside CXTPDockingPane on the left side of my CXTPMDIFrameWnd. Therefore I use the following code:
--- MainFrm.h ---
class CMainFrame {
...
CXTPDockingPaneManager m_paneManager;
CXTPTaskPanel m_wndToolPanel;
...
}
--- MainFrm.cpp ---
int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct) {
...
m_paneManager.InstallDockingPanes(this);
// create panel on the left side
CXTPDockingPane* tmpPanel = m_paneManager.CreatePane(IDR_PANETOOL, CRect(0, 0, 200, 0), xtpPaneDockLeft); // create the taskbar
m_wndToolPanel.Create(WS_CHILD|WS_VISIBLE|WS_CLIPSIBLINGS|WS_CLIPCHILDREN|WS_TABSTOP,CXTPEmptyRect),this, 0); // add taskbar to panel
tmpPanel->Attach(&m_wndToolPanel);
// populate with items
CXTPTaskPanelGroup *tmpGroup = m_wndToolPanel.AddGroup(IDS_GROUPCMD); tmpGroup->AddLinkItem(IDS_GROUPCURADD, 0); tmpGroup->AddLinkItem(IDS_GROUPCURDEL, 1); ...
}
all this is working correctly and the bars shows up as expected.
However I can't get XTPWM_TASKPANEL_NOTIFY to work and can't handle mouse-clicks on my links.
I added a
ON_MESSAGE(XTPWM_TASKPANEL_NOTIFY, OnToolPanelNotify) to the message map of CMainFrm and I have a test function:
LRESULT CMainFrame::OnToolPanelNotify(WPARAM wParam, LPARAM lParam) Any idea how to solve this ?
Thanks
Meike |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 19 December 2007 at 11:02am |
|
Add
m_wndToolPanel.SetOwner(this);
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
MeikeT
Newbie
Joined: 19 December 2007 Status: Offline Points: 2 |
Post Options
Thanks(0)
Quote Reply
Posted: 19 December 2007 at 12:12pm |
|
thanks oleg !
it now works perfect :-)
|
|
![]() |
|
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 |