Is there a code that checks if a window or control is enabled or disabled?