Dialogbox Issue ?
-
Hi, I have a Dialogbox (Main Dialog). I need to have another dialogbox (no title bar) inside this main dialogbox. How can i do this ? Thanks.
Insert a dialog to your resource or insert a new CDialog to your class
WhiteSky
-
Hi, I have a Dialogbox (Main Dialog). I need to have another dialogbox (no title bar) inside this main dialogbox. How can i do this ? Thanks.
Create a dialog box without
WS_CAPTION
style.Prasad Notifier using ATL | Operator new[],delete[][^]
-
Insert a dialog to your resource or insert a new CDialog to your class
WhiteSky
-
I mean to say that the second dialog should appear like other controls in that main dialogbox. How ?
Sakthiu wrote:
I mean to say that the second dialog should appear like other controls in that main dialogbox. How ?
After insert it to your project use of Create
WhiteSky
-
I mean to say that the second dialog should appear like other controls in that main dialogbox. How ?
I have done this previously using two different approaches. The first was to simply reuse the Property Page/Property Sheet approach, the other was to manually manage the child dialog as a non-modal dialog window, and keep moving/sizing it as the parent is moved/sized. You have to watch out for focus issues via keyboard navigation in either case. Look up the
WS_EX_CONTROLPARENT
style and KB articles that mention it for more information. Peace!-=- James
Please rate this message - let me know if I helped or not! * * *
If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
See DeleteFXPFiles -
I mean to say that the second dialog should appear like other controls in that main dialogbox. How ?
You can right click on resource and insert CDialog to your project and on the main dialog use of
m_Preview.Create(IDD_MYDAILOG,0);//without WS_CAPTION
m_Preview.ShowWindow(1);
WhiteSky
-
I mean to say that the second dialog should appear like other controls in that main dialogbox. How ?
Dialogs are windows, just like other windows, just like controls. You may want to look up windows and child windows in the MSDN and/or SDK. Your dialog needs to be a child window (have the WS_CHILD style) and be modeless. You'll need to position it within the parent window as well - you can use MoveWindow() for this.