KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > swt > internal > win32 > MENUITEMINFO


1 /*******************************************************************************
2  * Copyright (c) 2000, 2006 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.swt.internal.win32;
12
13 public class MENUITEMINFO {
14     public int cbSize;
15     public int fMask;
16     public int fType;
17     public int fState;
18     public int wID;
19     public int /*long*/ hSubMenu;
20     public int /*long*/ hbmpChecked;
21     public int /*long*/ hbmpUnchecked;
22     public int /*long*/ dwItemData;
23     public int /*long*/ dwTypeData;
24     public int cch;
25     public int /*long*/ hbmpItem;
26     /*
27     * Feature in Windows. The hbmpItem field requires Windows 4.10
28     * or greater. On Windows NT 4.0, passing in a larger struct size
29     * in the cbSize field does nothing. On Windows 95, the MENUITEMINFO
30     * calls fail when the struct size is too large. The fix is to ensure
31     * that the correct struct size is used for the Windows platform.
32     */

33     public static final int sizeof = !OS.IsWinCE && OS.WIN32_VERSION >= OS.VERSION (5, 0) ? OS.MENUITEMINFO_sizeof () : 44;
34 }
35
Popular Tags