I have a dialog that inherits from CSimpleDialog. does anyone know
how to change the size of the dialog in runtime. I have tried using
setwindowpos with no success. My dialog contains a edit box. Does
the edit box need to be resized before the dialog box?

Thanks.

Re: Change size of dialog in runtime by Victor

Victor
Wed Dec 05 14:20:28 PST 2007

lakepeir@yahoo.com wrote:
> I have a dialog that inherits from CSimpleDialog. does anyone know
> how to change the size of the dialog in runtime. I have tried using
> setwindowpos with no success.

What does "no success" mean? Do you have a problem compiling?

> My dialog contains a edit box. Does
> the edit box need to be resized before the dialog box?

No, they can be resized independently.

V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask



Re: Change size of dialog in runtime by Tom

Tom
Wed Dec 05 22:27:25 PST 2007

Try using MoveWindow(). You can resize the windows independently, but if
you plan to have controls on your dialog resize based on the size of the
dialog you may wnat to use a layout library like:

www.codeproject.com/dialog/resizabledialog.asp

Tom

<lakepeir@yahoo.com> wrote in message
news:6adde2f0-6479-41be-9063-54cf3bf15b09@t47g2000hsc.googlegroups.com...
>I have a dialog that inherits from CSimpleDialog. does anyone know
> how to change the size of the dialog in runtime. I have tried using
> setwindowpos with no success. My dialog contains a edit box. Does
> the edit box need to be resized before the dialog box?
>
> Thanks.