01: /*******************************************************************************
02: * Copyright (c) 2000, 2006 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.swt.internal.win32;
11:
12: public class MENUITEMINFO {
13: public int cbSize;
14: public int fMask;
15: public int fType;
16: public int fState;
17: public int wID;
18: public int /*long*/hSubMenu;
19: public int /*long*/hbmpChecked;
20: public int /*long*/hbmpUnchecked;
21: public int /*long*/dwItemData;
22: public int /*long*/dwTypeData;
23: public int cch;
24: public int /*long*/hbmpItem;
25: /*
26: * Feature in Windows. The hbmpItem field requires Windows 4.10
27: * or greater. On Windows NT 4.0, passing in a larger struct size
28: * in the cbSize field does nothing. On Windows 95, the MENUITEMINFO
29: * calls fail when the struct size is too large. The fix is to ensure
30: * that the correct struct size is used for the Windows platform.
31: */
32: public static final int sizeof = !OS.IsWinCE
33: && OS.WIN32_VERSION >= OS.VERSION(5, 0) ? OS
34: .MENUITEMINFO_sizeof() : 44;
35: }
|