org.eclipse.swt.internal.win32.MENUITEMINFO Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of org.eclipse.swt.win32.win32.x86 Show documentation
Show all versions of org.eclipse.swt.win32.win32.x86 Show documentation
SWT is an open source widget toolkit for Java designed to provide efficient, portable access to the user-interface facilities of the operating systems on which it is implemented.
The newest version!
/*******************************************************************************
* Copyright (c) 2000, 2012 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.swt.internal.win32;
public class MENUITEMINFO {
public int cbSize;
public int fMask;
public int fType;
public int fState;
public int wID;
/** @field cast=(HMENU) */
public int /*long*/ hSubMenu;
/** @field cast=(HBITMAP) */
public int /*long*/ hbmpChecked;
/** @field cast=(HBITMAP) */
public int /*long*/ hbmpUnchecked;
public int /*long*/ dwItemData;
/** @field cast=(LPTSTR) */
public int /*long*/ dwTypeData;
public int cch;
/** @field cast=(HBITMAP),flags=no_wince */
public int /*long*/ hbmpItem;
/*
* 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.
*/
public static final int sizeof = !OS.IsWinCE && OS.WIN32_VERSION >= OS.VERSION (5, 0) ? OS.MENUITEMINFO_sizeof () : 44;
}