Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Visual Studio 2005 like interface

Visual Studio 2005 like interface

Scheduled Pinned Locked Moved C / C++ / MFC
csharpc++visual-studiomcpperformance
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    Gagnon Claude
    wrote on last edited by
    #1

    Hi, I am working in an application with docking window like Visual Studio 2005 interface. I do it with Visual Studio 2008 and MFC. The left pane is a CTreeCtrl. I put items in it. When I click on an item, I want to display a form in the view portion of the application. To do that, I have a member function called void CViewTree::OnTvnSelchanged(NMHDR *pNMHDR, LRESULT *pResult) to catch the event. To display the form associated with the item clicked, I have to access the view class and after that the document class. I access the view like that from the CViewTree::OnTvnSelchanged function: CFrameWnd *pFrameWnd = (CFrameWnd*)AfxGetApp()->m_pMainWnd; CCDSView* pView; pView = (CCDSView*)pFrameWnd->GetActiveView(); I get memory leaks, but the program run anyway. What I can't understand is that the program run under Vista 64 Home premium at home, but not run on an XP computer at office. I compile it with Net Framework 2.0. Does it has another way to access the view or document that does not crash my application ? Thanks, Claude

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups