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. Findinf my CFrameWnd ?

Findinf my CFrameWnd ?

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

    Hi there, 1. Is there a possibility to get a pointer to my Main Frame from my CView derived ? 2. I have a split window with a CView derived Win in one side and a CFrameWnd on the other (which have his own CViews). a. how can i find the parent Frame of the view? b.how can i find the Main Frame of the view (the parent of the parent's frame)? Thanks in Advanced, Ariel.

    C 1 Reply Last reply
    0
    • A Ariel

      Hi there, 1. Is there a possibility to get a pointer to my Main Frame from my CView derived ? 2. I have a split window with a CView derived Win in one side and a CFrameWnd on the other (which have his own CViews). a. how can i find the parent Frame of the view? b.how can i find the Main Frame of the view (the parent of the parent's frame)? Thanks in Advanced, Ariel.

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      1. CMainFrame * pMain = (CMainFrame*) AfxGetMainWnd(); 2/ a. GetParentFrame() b. oh, a view inside a view ? The only MainFrame is the one you get above, but I doubt that is what you mean ? Christian The content of this post is not necessarily the opinion of my yadda yadda yadda. To understand recursion, we must first understand recursion.

      A 1 Reply Last reply
      0
      • C Christian Graus

        1. CMainFrame * pMain = (CMainFrame*) AfxGetMainWnd(); 2/ a. GetParentFrame() b. oh, a view inside a view ? The only MainFrame is the one you get above, but I doubt that is what you mean ? Christian The content of this post is not necessarily the opinion of my yadda yadda yadda. To understand recursion, we must first understand recursion.

        A Offline
        A Offline
        Ariel
        wrote on last edited by
        #3

        Thanks alot - actually you answerd 2.b. in your answer - so i have all i needed !!! Thank you, Ariel.

        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