News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Dialog as child

Started by lamer, May 21, 2005, 01:45:11 PM

Previous topic - Next topic

lamer

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?

mnemonic

Hi lamer,

according to Win32.hlp DialogBoxParam (and the like) exclusively creates modal dialogs.
You should try something like CreateWindow.

Regards
Be kind. Everyone you meet is fighting a hard battle.--Plato
-------
How To Ask Questions The Smart Way

lamer

So I can not use the dialog resource at all?
Or, in other words, how to use the dialog with CreateWindow?

raymond

Look at the CreateDialog function. It creates modeless dialog boxes.

Raymond
When you assume something, you risk being wrong half the time
http://www.ray.masmcode.com

pbrennick

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