int pascal SetMenu(HWND hWnd, HMENU hMenu) This function attaches or detaches a menubar to a window. Parameters hWnd is the handle of the standard window which will own the menubar. hMenu is the handle of the menubar, or NULLHWND if a menu is to be detached from hWnd. Returns Nothing.