Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Docking Pane
  New Posts New Posts RSS Feed - How Can Attach CFormView?&How I Catch Mouse Event?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

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

 Post Reply Post Reply
Author
Message
solitardj9 View Drop Down
Newbie
Newbie


Joined: 09 January 2007
Location: Korea, South
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote solitardj9 Quote  Post ReplyReply Direct Link To This Post 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 ....
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.