Change the GetMenuItemRect to comply with windows API.