For a menu bar or pop-up menu of a window, the WINDOW and OWNER attributes have the same value. For a window, the WINDOW attribute returns the window's handle (not its parent's handle, if any). For a menu bar or pop-up menu of a window, the WINDOW and OWNER attributes have the same value.