MDI - Dialogs - Cascade - Problem!
-
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()
orCMDIFramWnd::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 * -
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()
orCMDIFramWnd::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 *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
-
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
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 *