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. Arranging the dialogs

Arranging the dialogs

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

    I want to tile the 4 dialogs in the window, in my MFC application

    L W 2 Replies Last reply
    0
    • E Elsie

      I want to tile the 4 dialogs in the window, in my MFC application

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Elsie wrote:

      I want to tile the 4 dialogs in the window, in my MFC application

      Calculate the composite width and height of your dialogs and make sure the client portion of your window is exactly that size. As you create each dialog move it to the appropriate quadrant of the window.

      1 Reply Last reply
      0
      • E Elsie

        I want to tile the 4 dialogs in the window, in my MFC application

        W Offline
        W Offline
        wangningyu
        wrote on last edited by
        #3

        You can dynamically create 4 dialogs, here is to create a dynamically child dialog: // new a child dialog from the heap memory CRect rect; CChildDlg *pDlg=new CChildDlg(); // create a child dialog,and get the window rect. pDlg->Create(IDD_ChildDlg,NULL); pDlg->GetWindowRect(rect); // move it to point x =10, y =20 pDlg->MoveWindow(10,20,rect.bottom,rect.left,TRUE); // show and update the child window pDlg->ShowWindow(SW_SHOWNORMAL); pDlg->UpdateWindow(); pDlg = NULL;

        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