On Fri, Feb 18, 2000 at 01:33:04PM +0800, Dmitry Timoshkov wrote:
> Andreas Mohr <[EMAIL PROTECTED]> wrote:
> ...
>
> >- better WM_GETDLGCODE
> > Why were Wine's values so completely different from the MS documented
> > ones ??
>
> Hello.
>
> This patch will break the recently fixed accelerators in dialogs,
> because of code in dialog.c relies on the fact that dlgCode returned
> by button always contains DLGC_BUTTON bit.
Oh.
> If your patch is correct, dialog.c should be fixed too.
Hmm, it is supposed to be correct :)
At least these values are listed on MSDN docu.
I'm not sure what to return for "default:", though.
(they don't list *that*, of course)
How to fix dialog.c ?
I'm afraid this is rather non-trivial, as it would mean having to find out
which messages have to be sent for which button :-\
But maybe I should just map these things so that we have the unchanged old
messaging behaviour, even though the old behaviour might be broken at some
part.
Anyway, I better check whether these attributes are *really* correct
before continuing on this.
Andreas Mohr