- IsGrayedButton is intended to work on radio buttons or check boxes,
not on regular buttons. From the MSDN documentation, the actual
state of these grayed radio buttons and check boxes is
called "indeterminate"; which is most likely why IsGrayedButton
(simpler, although a bit misleading) was chosen as the function
For regular buttons, it is correct to use IsWindowEnabled, since
programmaticaly buttons are child windows.
--- In perlguitest@y..., "Ken Hommel" <khommel@y...> wrote:
> Either this function doesn't work, or I don't understand the
> of "Grayed" in this context. I think of a "Grayed" button as a
> that is disabled. I would expect this function to return the
> result of IsWindowEnabled.
> As far as I can tell, IsGrayedButton always returns 0. The good
> is that IsWindowEnabled works.
> If someone else has a better understanding of this function, please
> let me know.
> Thank you,