Author: jimtabor
Date: Fri Mar 12 17:11:28 2010
New Revision: 46134
URL:
http://svn.reactos.org/svn/reactos?rev=46134&view=rev
Log:
- Update more menu types and flags.
Modified:
trunk/reactos/include/psdk/winuser.h
trunk/reactos/include/reactos/win32k/ntuser.h
Modified: trunk/reactos/include/psdk/winuser.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/psdk/winuser.h?rev…
==============================================================================
--- trunk/reactos/include/psdk/winuser.h [iso-8859-1] (original)
+++ trunk/reactos/include/psdk/winuser.h [iso-8859-1] Fri Mar 12 17:11:28 2010
@@ -2446,8 +2446,18 @@
#define ODS_DISABLED 4
#define ODS_CHECKED 8
#define ODS_FOCUS 16
+#if(WINVER >= 0x0400)
#define ODS_DEFAULT 32
#define ODS_COMBOBOXEDIT 4096
+#endif
+#if(WINVER >= 0x0500)
+#define ODS_HOTLIGHT 0x0040
+#define ODS_INACTIVE 0x0080
+#if(_WIN32_WINNT >= 0x0500)
+#define ODS_NOACCEL 0x0100
+#define ODS_NOFOCUSRECT 0x0200
+#endif
+#endif
#define IDHOT_SNAPWINDOW (-1)
#define IDHOT_SNAPDESKTOP (-2)
#define DBWF_LPARAMPOINTER 0x8000
Modified: trunk/reactos/include/reactos/win32k/ntuser.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/reactos/win32k/ntu…
==============================================================================
--- trunk/reactos/include/reactos/win32k/ntuser.h [iso-8859-1] (original)
+++ trunk/reactos/include/reactos/win32k/ntuser.h [iso-8859-1] Fri Mar 12 17:11:28 2010
@@ -221,12 +221,15 @@
#define GetWin32ClientInfo() ((PCLIENTINFO)(NtCurrentTeb()->Win32ClientInfo))
+/* Menu Item fType. */
+#define MFT_RTOL 0x6000
+
typedef struct tagITEM
{
UINT fType;
UINT fState;
UINT wID;
- struct tagMENU* spSubMenu; /* Pop-up menu. */
+ struct tagMENU* spSubMenu; /* Pop-up menu. */
HANDLE hbmpChecked;
HANDLE hbmpUnchecked;
USHORT* lpstr; /* Item text pointer. */
@@ -250,12 +253,21 @@
struct tagMENU* pMenu;
} MENULIST, *PMENULIST;
+/* Menu fFlags, upper byte is MNS_X style flags. */
+#define MNF_POPUP 0x0001
+#define MNF_UNDERLINE 0x0004
+#define MNF_INACTIVE 0x0010
+#define MNF_RTOL 0x0020
+#define MNF_DESKTOPMN 0x0040
+#define MNF_SYSDESKMN 0x0080
+#define MNF_SYSSUBMENU 0x0100
+
typedef struct tagMENU
{
PROCDESKHEAD head;
- ULONG fFlags; /* Menu flags (MF_POPUP, MF_SYSMENU) */
+ ULONG fFlags; /* [Style flags | Menu flags] */
INT iItem; /* nPos of selected item, if -1 not selected. */
- UINT cAlloced; /* Number of allocated items. */
+ UINT cAlloced; /* Number of allocated items. Inc's of 8 */
UINT cItems; /* Number of items in the menu */
ULONG cxMenu; /* Width of the whole menu */
ULONG cyMenu; /* Height of the whole menu */