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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Order of views in MDI application

Order of views in MDI application

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.
  • L Offline
    L Offline
    Le Thanh Cong
    wrote on last edited by
    #1

    I build a MDI application, it contains 5 views. What is way to get information for order of view (view 1 is above view 2, view 2 is above view 3, ...). ----------------- conglt

    P 1 Reply Last reply
    0
    • L Le Thanh Cong

      I build a MDI application, it contains 5 views. What is way to get information for order of view (view 1 is above view 2, view 2 is above view 3, ...). ----------------- conglt

      P Offline
      P Offline
      Parthiban
      wrote on last edited by
      #2

      Hi, U can get the view position by following. this can be get from document class, CUrDoc* pDoc = GetDocument(); ASSERT_VALID(pDoc); POSITION pos = pDoc->GetFirstViewPosition(); while (pos != NULL) { CView* pView = pDoc->GetNextView(pos); } pos is position which u can type cast to integer. Parthi.

      L 1 Reply Last reply
      0
      • P Parthiban

        Hi, U can get the view position by following. this can be get from document class, CUrDoc* pDoc = GetDocument(); ASSERT_VALID(pDoc); POSITION pos = pDoc->GetFirstViewPosition(); while (pos != NULL) { CView* pView = pDoc->GetNextView(pos); } pos is position which u can type cast to integer. Parthi.

        L Offline
        L Offline
        Le Thanh Cong
        wrote on last edited by
        #3

        thanks ----------------- conglt

        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