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. MDI - Dialogs - Cascade - Problem!

MDI - Dialogs - Cascade - Problem!

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestion
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.
  • N Offline
    N Offline
    Nirav Doshi
    wrote on last edited by
    #1

    Hello, I'm making a MDI application which has a lot of modeless dialogs used as input-forms. The problem I have with them is each newly opened dialog overlaps the previously open dialog. I want the user to be able to cascade/tile the dialogs. Queries: (1). Is there a way that I can explicitly make them the children of my MDI. And if I can do this, will the CMDIFrameWnd::MDICascade() or CMDIFramWnd::MDITile() work to cascade/tile them. :(( :confused: (2). Or can I use some other function which could cascade/tile the dialogs for me?...:confused:... Or am I required to take care of positioning each dialog properly below the previously opened one?? :((:confused: Thanks, Rgds, Nirav Doshi * The world stands aside to let anyone pass who knows where he is going! - David Jordan *

    R 1 Reply Last reply
    0
    • N Nirav Doshi

      Hello, I'm making a MDI application which has a lot of modeless dialogs used as input-forms. The problem I have with them is each newly opened dialog overlaps the previously open dialog. I want the user to be able to cascade/tile the dialogs. Queries: (1). Is there a way that I can explicitly make them the children of my MDI. And if I can do this, will the CMDIFrameWnd::MDICascade() or CMDIFramWnd::MDITile() work to cascade/tile them. :(( :confused: (2). Or can I use some other function which could cascade/tile the dialogs for me?...:confused:... Or am I required to take care of positioning each dialog properly below the previously opened one?? :((:confused: Thanks, Rgds, Nirav Doshi * The world stands aside to let anyone pass who knows where he is going! - David Jordan *

      R Offline
      R Offline
      Ravi Bhavnani
      wrote on last edited by
      #2

      I suspect you'll need to do this manually by keeping track of the position of the most recently displayed modeless dialog. Then, offset each new one by (nOffsetX, nOffsetY), where:

      nOffsetX = GetSystemMetrics (SM_CXSMICON);
      nOffsetY = GetSystemMetrics (SM_CYCAPTION);

      /ravi Let's put "civil" back in "civilization" http://www.ravib.com ravib@ravib.com

      N 1 Reply Last reply
      0
      • R Ravi Bhavnani

        I suspect you'll need to do this manually by keeping track of the position of the most recently displayed modeless dialog. Then, offset each new one by (nOffsetX, nOffsetY), where:

        nOffsetX = GetSystemMetrics (SM_CXSMICON);
        nOffsetY = GetSystemMetrics (SM_CYCAPTION);

        /ravi Let's put "civil" back in "civilization" http://www.ravib.com ravib@ravib.com

        N Offline
        N Offline
        Nirav Doshi
        wrote on last edited by
        #3

        Okay Ravi... I guess, I have to manually do the task! :(:~ Anyway, thanks a ton! :) I will do it as you've suggested! Thanks again, Rgds, Nirav * The world stands aside to let anyone pass who knows where he is going! - David Jordan *

        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