Hi all!
The question is as follows:
I have an MDI app and a dialog which I want to behave like child window of the app.
But invoke DialogBoxParam,hInstance,IDD_DLG1,hClient,addr DialogProc,NULL
(where hClient is the MDI client handle)
does not help - the dialog just becomes modal.
I have found nothing on the net - nor examples, nor tuttorials about working with dialogs as child windows of MDI.
Anybody can give me a push?
Hi lamer,
according to Win32.hlp DialogBoxParam (and the like) exclusively creates modal dialogs.
You should try something like CreateWindow.
Regards
So I can not use the dialog resource at all?
Or, in other words, how to use the dialog with CreateWindow?
Look at the CreateDialog function. It creates modeless dialog boxes.
Raymond
CreateDialog uses CreateDialogParam to create a modeless dialog box. Either way, CreateWindowEx gets used to do the dirty work which is the point that mnemonic is making. :thumbu
Paul