RE: Windows Default Button Observations

2004-08-15 Thread Zach Gorman
> 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... In Windows, when you click & hold on a button, each button in the dialog gets sent a WM_GETDLGCODE, presumably to determine wh

Re: Windows Default Button Observations

2004-08-15 Thread Ferenc Wagner
Mike Hearn <[EMAIL PROTECTED]> writes: > On Sun, 15 Aug 2004 11:23:07 +0200, Ferenc Wagner wrote: > >> 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... > > http://weblogs.asp.

Re: Windows Default Button Observations

2004-08-15 Thread Mike Hearn
On Sun, 15 Aug 2004 11:23:07 +0200, Ferenc Wagner wrote: > 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... http://weblogs.asp.net/oldnewthing/archive/2004/08/02/205624.aspx I'

Re: Windows Default Button Observations

2004-08-15 Thread Ferenc Wagner
"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 > rec

Windows Default Button Observations

2004-08-14 Thread Zach Gorman
While fixing some compatibility problems in Wine relating to my app, I had the opportunity to compare how Wine handles default buttons to how Windows handles them. [Definition: Default buttons have the BS_DEFPUSHBUTTON style, are drawn with an extra-thick border, and are the buttons chosen