summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT PI/win32/org/eclipse/swt/internal/win32/MENUITEMINFO.java
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT PI/win32/org/eclipse/swt/internal/win32/MENUITEMINFO.java')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/win32/org/eclipse/swt/internal/win32/MENUITEMINFO.java32
1 files changed, 32 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/win32/org/eclipse/swt/internal/win32/MENUITEMINFO.java b/bundles/org.eclipse.swt/Eclipse SWT PI/win32/org/eclipse/swt/internal/win32/MENUITEMINFO.java
new file mode 100644
index 0000000000..176e567585
--- /dev/null
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/win32/org/eclipse/swt/internal/win32/MENUITEMINFO.java
@@ -0,0 +1,32 @@
+package org.eclipse.swt.internal.win32;
+
+/*
+ * (c) Copyright IBM Corp. 2000, 2001.
+ * All Rights Reserved
+ */
+public class MENUITEMINFO {
+ public int cbSize;
+ public int fMask;
+ public int fType;
+ public int fState;
+ public int wID;
+ public int hSubMenu;
+ public int hbmpChecked;
+ public int hbmpUnchecked;
+ public int dwItemData;
+ public int dwTypeData;
+ public int cch;
+ public int hbmpItem;
+ public static final int sizeof;
+
+ /*
+ * Feature in Windows. The hbmpItem field requires Windows 4.10
+ * or greater. On Windows NT 4.0, passing in a larger struct size
+ * in the cbSize field does nothing. On Windows 95, the MENUITEMINFO
+ * calls fail when the struct size is too large. The fix is to ensure
+ * that the correct struct size is used for the Windows platform.
+ */
+ static {
+ sizeof = (OS.WIN32_MAJOR << 16 | OS.WIN32_MINOR) < (4 << 16 | 10) ? 44 : 48;
+ }
+}