Print Page | Close Window

How Can Attach CFormView?&How I Catch Mouse Event?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Docking Pane
Forum Description: Topics Related to Codejock Docking Pane
URL: http://forum.codejock.com/forum_posts.asp?TID=6046
Printed Date: 12 December 2024 at 9:35am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How Can Attach CFormView?&How I Catch Mouse Event?
Posted By: solitardj9
Subject: How Can Attach CFormView?&How I Catch Mouse Event?
Date Posted: 09 January 2007 at 8:51am
I make Custom View Class which is inherited from CFormView Class by using Resource Edit in MFC
 
1) I Added Panel to Panel Manager
 
CXTPDockingPane* pwndPane3 = m_paneManager.CreatePane( IDD_TREELIST, CRect(0, 0,200, 120), xtpPaneDockRight );
 
2) I Attached Custom View Class to Pane
 
LRESULT CMainFrame::OnDockingPaneNotify(WPARAM wParam, LPARAM lParam)
{
    ......
    case IDD_TREELIST :
    { 
         pPane->AttachView( this, RUNTIME_CLASS(CTreeListView) );
         break;
    }
    ......
}
 
And It looks working....but, when I Close my application in debug mode
Many Memory Access Violatoin occured......
 
And the other problem is that How can I Catch Mouse Event??
I want to show and Hide Docking Panel by clicking Mouse....
 
I tried to Use OnDockingPaneNotify Macro...but I couldn't...
So Please let me know How can I do...waht can i do ....



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