compile insert msWin_Menu_Equates /* ** Copyright (C) 2012-2017 Revelation Software Inc. All Rights Reserved ** Author : Mr C Date : 16 Feb 2017 Purpose : Equated constants for use with Windows Menus Comments ======== Amended Date Reason ======= ==== ====== */ /////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////// #ifndef _MSWIN_MENU_EQUATES_ #define _MSWIN_MENU_EQUATES /////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////// * // win40 -- A lot of MF_* flags have been renamed as MFT_* and MFS_* flags * // Menu flags for Add/Check/EnableMenuItem() equ MF_INSERT$ to 0x00000000 equ MF_CHANGE$ to 0x00000080 equ MF_APPEND$ to 0x00000100 equ MF_DELETE$ to 0x00000200 equ MF_REMOVE$ to 0x00001000 equ MF_BYCOMMAND$ to 0x00000000 equ MF_BYPOSITION$ to 0x00000400 equ MF_SEPARATOR$ to 0x00000800 equ MF_ENABLED$ to 0x00000000 equ MF_GRAYED$ to 0x00000001 equ MF_DISABLED$ to 0x00000002 equ MF_UNCHECKED$ to 0x00000000 equ MF_CHECKED$ to 0x00000008 equ MF_USECHECKBITMAPS$ to 0x00000200 equ MF_STRING$ to 0x00000000 equ MF_BITMAP$ to 0x00000004 equ MF_OWNERDRAW$ to 0x00000100 equ MF_POPUP$ to 0x00000010 equ MF_MENUBARBREAK$ to 0x00000020 equ MF_MENUBREAK$ to 0x00000040 equ MF_UNHILITE$ to 0x00000000 equ MF_HILITE$ to 0x00000080 equ MF_DEFAULT$ to 0x00001000 equ MF_SYSMENU$ to 0x00002000 equ MF_HELP$ to 0x00004000 equ MF_RIGHTJUSTIFY$ to 0x00004000 equ MF_MOUSESELECT$ to 0x00008000 equ MF_END$ to 0x00000080 ; * // Obsolete -- only used by old RES files equ MFT_STRING$ to MF_STRING$ equ MFT_BITMAP$ to MF_BITMAP$ equ MFT_MENUBARBREAK$ to MF_MENUBARBREAK$ equ MFT_MENUBREAK$ to MF_MENUBREAK$ equ MFT_OWNERDRAW$ to MF_OWNERDRAW$ equ MFT_RADIOCHECK$ to 0x00000200 equ MFT_SEPARATOR$ to MF_SEPARATOR$ equ MFT_RIGHTORDER$ to 0x00002000 equ MFT_RIGHTJUSTIFY$ to MF_RIGHTJUSTIFY$ equ MFS_GRAYED$ to 0x00000003 equ MFS_DISABLED$ to MFS_GRAYED$ equ MFS_CHECKED$ to MF_CHECKED$ equ MFS_HILITE$ to MF_HILITE$ equ MFS_ENABLED$ to MF_ENABLED$ equ MFS_UNCHECKED$ to MF_UNCHECKED$ equ MFS_UNHILITE$ to MF_UNHILITE$ equ MFS_DEFAULT$ to MF_DEFAULT$ ///////////////////////////////////////////////////////////////////////////// * // Flags for TrackPopupMenu() equ TPM_LEFTBUTTON$ to 0x0000 equ TPM_RIGHTBUTTON$ to 0x0002 equ TPM_LEFTALIGN$ to 0x0000 equ TPM_CENTERALIGN$ to 0x0004 equ TPM_RIGHTALIGN$ to 0x0008 equ TPM_TOPALIGN$ to 0x0000 equ TPM_VCENTERALIGN$ to 0x0010 equ TPM_BOTTOMALIGN$ to 0x0020 equ TPM_HORIZONTAL$ to 0x0000 ; * // Horz alignment matters more equ TPM_VERTICAL$ to 0x0040 ; * // Vert alignment matters more equ TPM_NONOTIFY$ to 0x0080 ; * // Don't send any notification msgs equ TPM_RETURNCMD$ to 0x0100 equ TPM_RECURSE$ to 0x0001 equ TPM_HORPOSANIMATION$ to 0x0400 equ TPM_HORNEGANIMATION$ to 0x0800 equ TPM_VERPOSANIMATION$ to 0x1000 equ TPM_VERNEGANIMATION$ to 0x2000 equ TPM_NOANIMATION$ to 0x4000 equ TPM_LAYOUTRTL$ to 0x8000 equ TPM_WORKAREA$ to 0x10000 /////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////// #endif /////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////