Hi all,

Do you know what is the WM_COMMAND send to a dialog box when we click on the
OK and the Cross icon on the top right of the window?

For OK, I can see that I receive WM_COMMAND with LOWORD(wParam) which is
equal to 1 but I can't find the associated constant.

Perhpas that these buttons has to be intercepted with the GETDLGCODE message.

Who can explain me how is it working?

Thanks a lot in advance.

Re: Interception of done button by r_z_aret

r_z_aret
Wed Nov 23 14:21:59 CST 2005

On Wed, 23 Nov 2005 01:05:10 -0800, "djarjar"
<djarjar@discussions.microsoft.com> wrote:

>Hi all,
>
>Do you know what is the WM_COMMAND send to a dialog box when we click on the
>OK and the Cross icon on the top right of the window?
>
>For OK, I can see that I receive WM_COMMAND with LOWORD(wParam) which is
>equal to 1 but I can't find the associated constant.

Look in winuser.h for definition of IDOK and relatives.


>
>Perhpas that these buttons has to be intercepted with the GETDLGCODE message.
>
>Who can explain me how is it working?
>
>Thanks a lot in advance.

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

Robert E. Zaret, eMVP
PenFact, Inc.
20 Park Plaza, Suite 478
Boston, MA 02116
www.penfact.com