Mark Xa
December 7th, 2006, 08:56 AM
I have created a dialog on a dialog but when I move the parent dialog the child dialog does not move with the parent. Why is this?
|
Click to See Complete Forum and Search --> : Dialog on a Dialog Mark Xa December 7th, 2006, 08:56 AM I have created a dialog on a dialog but when I move the parent dialog the child dialog does not move with the parent. Why is this? ovidiucucu December 7th, 2006, 09:07 AM That's because your dialog is not child (does not have WS_CHILD style set). How did you create it? Mark Xa December 7th, 2006, 09:29 AM I created it with DialogBoxParam - where do I add the WS_CHILD style? ovidiucucu December 7th, 2006, 09:38 AM Aha, so you have created a dialog based on a resource dialog template. That case you can add WS_CHILD style in the resource editor. But DialogBoxParam creates a modal dialog box which is not good to be a child window. Intead, call CreateDialogParam to create a modeless one, or easier, call CreateDialog macro. PS. You don't use MFC? Mark Xa December 7th, 2006, 09:49 AM Thanks - I finally found it in the resource editor under style (popup, overlapped or child). No I am not using MFC - this is a native win32 application. ovidiucucu December 7th, 2006, 10:02 AM [ Redirected thread ] No I am not using MFC - this is a native win32 application. Well, then the most appropriate forum is this one ( C++ and WinAPI). codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |