Hey,All!

I am now trying to terminate a dialog object,but I do not know how I can
terminate it, can anybody tell me how many method I can close it?

Thanks in advance!

Re: How can I terminate a Dialog object? by andré

andré
Tue May 10 23:33:06 CDT 2005


"Carl" wrote

> Hey,All!
>
> I am now trying to terminate a dialog object,but I do not know how I can
> terminate it, can anybody tell me how many method I can close it?
>
> Thanks in advance!
>

if the Dialog Window is "Modal" you need EndDialog( HWND, INT );
otherwise use DestroyWindow( HWND );




Re: How can I terminate a Dialog object? by Mark

Mark
Wed May 11 03:38:49 CDT 2005

In addition to Andre's comment - I saw you said object, so I thought id
better throw in that if you are using the CDialog object use OnOK( ) or
OnCancel( )

--
- Mark Randall
http://zetech.swehli.com

"Carl" <carl8421@126.com> wrote in message
news:%23EdFXvdVFHA.3076@TK2MSFTNGP12.phx.gbl...
> Hey,All!
>
> I am now trying to terminate a dialog object,but I do not know how I can
> terminate it, can anybody tell me how many method I can close it?
>
> Thanks in advance!
>
>



Re: How can I terminate a Dialog object? by Carl

Carl
Wed May 11 21:49:13 CDT 2005

Thanks very much