pub fn popup_with_flags(&self, x: i32, y: i32, flags: PopupMenuFlags) {
        use winapi::um::winuser::{TrackPopupMenu, SetForegroundWindow};
        use winapi::ctypes::c_int;

        if self.handle.blank() { panic!("Menu is not bound"); }
        let (parent_handle, handle) = match self.handle.pop_hmenu() {
            Some(v) => v,
            None => { return; }
        };

        unsafe { 
            SetForegroundWindow(parent_handle);
            TrackPopupMenu(
                handle,
                flags.bits(),
                x as c_int,
                y as c_int,
                0,
                parent_handle,
                ptr::null()
            );
        }
    }
/// Show a popup menu as the selected position. Do nothing for menubar menu.
Show a popup menu as the selected position. Do nothing for menubar menu.
Show a popup menu as the selected position . Do nothing for menubar menu .
pub fn popup_with_flags(&self, x: i32, y: i32, flags: PopupMenuFlags) {
        use winapi::um::winuser::{TrackPopupMenu, SetForegroundWindow};
        use winapi::ctypes::c_int;
        if self.handle.blank() { panic!("Menu is not bound"); }
        let (parent_handle, handle) = match self.handle.pop_hmenu() {
            Some(v) => v,
            None => { return; }
        };
        unsafe { 
            SetForegroundWindow(parent_handle);
            TrackPopupMenu(
                handle,
                flags.bits(),
                x as c_int,
                y as c_int,
                0,
                parent_handle,
                ptr::null()
            );
        }
    }
pub fn popup_with_flags ( & self , x : i32 , y : i32 , flags : PopupMenuFlags ) { use winapi :: um :: winuser :: { TrackPopupMenu , SetForegroundWindow } ; use winapi :: ctypes :: c_int ; if self . handle . blank ( ) { panic ! ( " " ) ; } let ( parent_handle , handle ) = match self . handle . pop_hmenu ( ) { Some ( v ) => v , None => { return ; } } ; unsafe { SetForegroundWindow ( parent_handle ) ; TrackPopupMenu ( handle , flags . bits ( ) , x as c_int , y as c_int , 0 , parent_handle , ptr :: null ( ) ) ; } }
Show a popup menu as the selected position.
Show a popup menu as the selected position .
&self
x
i32
y
i32
flags
PopupMenuFlags