|  | 
| How Can Attach CFormView?&How I Catch Mouse Event? | 
| Post Reply   | 
| Author | |
| solitardj9   Newbie   Joined: 09 January 2007 Location: Korea, South Status: Offline Points: 1 |  Post Options  Thanks(0)  Quote  Reply  Topic: How Can Attach CFormView?&How I Catch Mouse Event? 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 .... | |
|  | |
| 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 |