I am making my own button window class in assembly, and I can't figure out how default buttons work. Mainly... how does a default button know when the Enter key is pressed when it doesn't have keyboard focus?

Thanks in advance.
Posted on 2002-01-23 12:54:11 by Stan

I believe that, for a dialog, the enter key is sent
as a BN_CLICKED message to the dialog's message
loop. You can set or change the default button
by using the DM_SETDEFID message. You may also
have to use the BM_SETSTYLE message to change the
border style of the previous default button.

Posted on 2002-01-23 15:02:35 by farrier