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. How get a pointer to CDocument ???

How get a pointer to CDocument ???

Scheduled Pinned Locked Moved C / C++ / MFC
question
3 Posts 2 Posters 5 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.
  • D Offline
    D Offline
    Daniel Strigl
    wrote on last edited by
    #1

    How can I get a pointer to my CDocument class in the CMainFrame class? I have a Document / View application and have to work with some data of the document in my CMainFrame class. So, how can I get a pointer to my document? Is there any AfxGet??? function? Daniel ;) --------------------------- Never change a running system!

    M 1 Reply Last reply
    0
    • D Daniel Strigl

      How can I get a pointer to my CDocument class in the CMainFrame class? I have a Document / View application and have to work with some data of the document in my CMainFrame class. So, how can I get a pointer to my document? Is there any AfxGet??? function? Daniel ;) --------------------------- Never change a running system!

      M Offline
      M Offline
      Mark Donkers
      wrote on last edited by
      #2

      I believe this is it. CFrameWnd::GetActiveDocument() MD Mark Donkers A witty saying proves nothing. -- Voltaire

      D 1 Reply Last reply
      0
      • M Mark Donkers

        I believe this is it. CFrameWnd::GetActiveDocument() MD Mark Donkers A witty saying proves nothing. -- Voltaire

        D Offline
        D Offline
        Daniel Strigl
        wrote on last edited by
        #3

        Thanks! Daniel ;) --------------------------- Never change a running system!

        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