Don't call TranslateAccelerator only for a window that doesn't have a menu bar.