how autohide implemented in win32 ? have menu in application can hide setmenu( hwnddlg, null )
, can re-enable setmenu( hwnddlg, hmenu )
want mimic behaviour many modern applications have (such ie9) menu hidden till press alt. when main window becomes focused menu goes away again. there standard api ? alternatively check focus , alt button.
after investigating spy++, able show menu on handling wm_syscommand sc_keymenu still not sure message handle make menu go away.
so want know when user done menu can hide again?
if so, try wm_exitmenuloop message.
apparently app gets wm_enter/exitmenuloop both regular app menu, system menu, , 'trackpopupmenu' menus, may when regular menu hidden (eg. if user access , dismisses system menu).
Comments
Post a Comment