04-12-2009, 01:58 PM
Function DialogWithMenu
Menu functions are documented in MSDN library.
,;...
,case 110 ;;Enable Undo
,int hm=GetMenu(hDlg) ;;menu bar
,EnableMenuItem hm 106 0
,case 111 ;;Disable Undo
,hm=GetMenu(hDlg) ;;menu bar
,EnableMenuItem hm 106 MF_GRAYED
ret 1
;BEGIN MENU
;>&File
,;&Open : 101 0 0 Co
,;-
,;>&Recent
,,;Empty : 102 0 3
,,;<
,;<
;>&Edit
,;&Undo : 106 0 1 Cz
,;Enable Undo : 110
,;Disable Undo : 111
,;Cu&t : 103 0 0 Cx
,;-
,;Select &All : 104 0 0 Ca
,;<
;&Help : 105 0
;END MENU
Menu functions are documented in MSDN library.