Create a dialog
-
Hi Experts, How to create a dialog with another. I elborate my problem. I have designed one dialog(D1) with one Tree control at left side. I want ,when I click on any tree item an aonther dialog(D2) box should appear at right side of that dialog(D1) like a lot of contorls appear at right side. Dialog(D2) box is getting appear but this is not attached with first dialog(D1). It can be seperately move. But I want to When I move D1, D2 should move.
-
Hi Experts, How to create a dialog with another. I elborate my problem. I have designed one dialog(D1) with one Tree control at left side. I want ,when I click on any tree item an aonther dialog(D2) box should appear at right side of that dialog(D1) like a lot of contorls appear at right side. Dialog(D2) box is getting appear but this is not attached with first dialog(D1). It can be seperately move. But I want to When I move D1, D2 should move.
For make a new dialog you can use of CDialog class or CreateWindow.
-
For make a new dialog you can use of CDialog class or CreateWindow.
-
Hi Experts, How to create a dialog with another. I elborate my problem. I have designed one dialog(D1) with one Tree control at left side. I want ,when I click on any tree item an aonther dialog(D2) box should appear at right side of that dialog(D1) like a lot of contorls appear at right side. Dialog(D2) box is getting appear but this is not attached with first dialog(D1). It can be seperately move. But I want to When I move D1, D2 should move.
Create a modeless dialog, and set it's property to behave like a child.
Somethings seem HARD to do, until we know how to do them. ;-)_AnShUmAn_
-
I did like this. .. .. CDialog m_Dlg; .. ..
m_Dlg.Create(IDD_DLG_SELECT_ALGO,this); m_Dlg.SetWindowPos(this,100,500,400,300,SWP_SHOWWINDOW|SWP_NOMOVE); m_Dlg.ShowWindow(SW_SHOW);
But not working.Whats the problem?
-
Whats the problem?
-
D2 is displaying in the right side of D1.But it is not attached with D1. When I move D1, D2 remains at same position. It does not bind with D1.
See these message :WM_MOVE and WM_MOVING.
-
Hi Experts, How to create a dialog with another. I elborate my problem. I have designed one dialog(D1) with one Tree control at left side. I want ,when I click on any tree item an aonther dialog(D2) box should appear at right side of that dialog(D1) like a lot of contorls appear at right side. Dialog(D2) box is getting appear but this is not attached with first dialog(D1). It can be seperately move. But I want to When I move D1, D2 should move.
set WS_CHILD style to D2
Are you have gtalk ? please add me: xiangyangzhao@gmail.com
-
Hi Experts, How to create a dialog with another. I elborate my problem. I have designed one dialog(D1) with one Tree control at left side. I want ,when I click on any tree item an aonther dialog(D2) box should appear at right side of that dialog(D1) like a lot of contorls appear at right side. Dialog(D2) box is getting appear but this is not attached with first dialog(D1). It can be seperately move. But I want to When I move D1, D2 should move.
Change the style as "child" in Styles tab of Dialog Properties. It might be now set as "popup". After that set "Control" in the More Styles tab and "Control Parent" in the Extended Styles tab.
- NS - [ODBaseBtn]
-
Hi Experts, How to create a dialog with another. I elborate my problem. I have designed one dialog(D1) with one Tree control at left side. I want ,when I click on any tree item an aonther dialog(D2) box should appear at right side of that dialog(D1) like a lot of contorls appear at right side. Dialog(D2) box is getting appear but this is not attached with first dialog(D1). It can be seperately move. But I want to When I move D1, D2 should move.
Hi, I'm Not an expert, very few of us would claim to be. Your problem appears not to be the drawing of the Dialog box, (that's quite simple) but the trapping of the event on which you want it drawn. i.e. you want to trap the event of a user clicking on a Tree Control Item, by starting an event handler. That event handler should set up a Dialog box, and call it's DoModal().
Bram van Kampen