Set menu parent and window flags.
