Determine the enabled state using IsThisEnabled() instead of IsEnabled(), because the latter returns false if the entire window is disabled without its appearance being affected, e.g. if another window is shown modally.