"Zach Gorman" <[EMAIL PROTECTED]> writes: > My impression is that (1) could be handled by remembering > the default button (which, as Krishna Murthy has shown, is > not the same as the default button id) in the DIALOGINFO > structure. > > Number (2), however, is more difficult. When a button > receives the capture, it can send a BM_SETSTATE to itself > easily enough to make itself a DEFPUSHBUTTON, but how does > it determine which other buttons to query and make > non-default as necessary?
Once you remembered the current (possibly inactive) default button in DIALOGINFO, this should come for free. I hope at most one button can be default in a dialog... -- Feri.