HMENU pascal CreatePopupMenu(HWND hParent) This function creates an empty popup menu and attaches it to window hParent. Parameters hParent is the handle of the window to attach to newly created popup menu to. Returns The handle of the popup menu, or NULLHWND if the popup could not be created.