unsafe fn use_menu_command(h: HMENU) {
    use winapi::um::winuser::{MENUINFO, MNS_NOTIFYBYPOS, MIM_STYLE, SetMenuInfo};
    use winapi::shared::minwindef::DWORD;

    let mut info = MENUINFO {
        cbSize: mem::size_of::<MENUINFO>() as DWORD,
        fMask: MIM_STYLE,
        dwStyle: MNS_NOTIFYBYPOS,
        cyMax: 0,
        hbrBack: ptr::null_mut(),
        dwContextHelpID: 0,
        dwMenuData: 0
    };

    SetMenuInfo(h, &mut info);
}
/**
    Configure the menu to use a WM_MENUCOMMAND instead of a WM_COMMAND when its action are triggered.
    Required in order to allow nwg to dispatch the events correctly
*/
Configure the menu to use a WM_MENUCOMMAND instead of a WM_COMMAND when its action are triggered.
Required in order to allow nwg to dispatch the events correctly
Configure the menu to use a WM_MENUCOMMAND instead of a WM_COMMAND when its action are triggered . Required in order to allow nwg to dispatch the events correctly
unsafe fn use_menu_command(h: HMENU) {
    use winapi::um::winuser::{MENUINFO, MNS_NOTIFYBYPOS, MIM_STYLE, SetMenuInfo};
    use winapi::shared::minwindef::DWORD;
    let mut info = MENUINFO {
        cbSize: mem::size_of::<MENUINFO>() as DWORD,
        fMask: MIM_STYLE,
        dwStyle: MNS_NOTIFYBYPOS,
        cyMax: 0,
        hbrBack: ptr::null_mut(),
        dwContextHelpID: 0,
        dwMenuData: 0
    };
    SetMenuInfo(h, &mut info);
}
unsafe fn use_menu_command ( h : HMENU ) { use winapi :: um :: winuser :: { MENUINFO , MNS_NOTIFYBYPOS , MIM_STYLE , SetMenuInfo } ; use winapi :: shared :: minwindef :: DWORD ; let mut info = MENUINFO { cbSize : mem :: size_of :: < MENUINFO > ( ) as DWORD , fMask : MIM_STYLE , dwStyle : MNS_NOTIFYBYPOS , cyMax : 0 , hbrBack : ptr :: null_mut ( ) , dwContextHelpID : 0 , dwMenuData : 0 } ; SetMenuInfo ( h , & mut info ) ; }
Configure the menu to use a WM_MENUCOMMAND instead of a WM_COMMAND when its action are triggered.
Configure the menu to use a WM_MENUCOMMAND instead of a WM_COMMAND when its action are triggered .
h
HMENU