[PATCH 2/2] user32/menu: Replace macro checks for window style with a helper function