Hi there, i have a question, may be a very simple question but cant figure
it out yet,

when a main dialog in a dialog based application recieves a WM_CLOSE
message, and proceses it, hoy does it send a close message to other dialogs
in the app, or how does it close them

thanks for your time

Re: how to cloe dialogs by r_z_aret

r_z_aret
Mon Dec 15 10:22:52 CST 2003

On Sat, 13 Dec 2003 22:32:17 -0400, "Peter"
<no_reply@mail.company.com> wrote:

>Hi there, i have a question, may be a very simple question but cant figure
>it out yet,
>
>when a main dialog in a dialog based application recieves a WM_CLOSE
>message, and proceses it, hoy does it send a close message to other dialogs
>in the app, or how does it close them

Pretty much the same as for "big" Windows. Sometimes sending WM_CLOSE
message works. Sometimes letting Windows close children of the dialog
box you close explicitly. Sometimes by using ::EndDialog (for modal
dialogs) or ::DestroyWindow (for non-modal).

>
>thanks for your time
>
>

-----------------------------------------
To reply to me, remove the underscores (_) from my email address (and please indicate which newsgroup and message).

Robert E. Zaret
PenFact, Inc.
500 Harrison Ave., Suite 3R
Boston, MA 02118
www.penfact.com