When generating an MDI application using wizard, placing the window on the edge will make some menu items of the main menu partly out of the screen. In that case, when one of such menu items is clicked, the popup position of its cascade menu will shift.