blob: 0fec8c66ee99876c01e93ec14eb28f97816ded39 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
package org.eclipse.swt.internal.win32;
/*
* Copyright (c) 2000, 2002 IBM Corp. All rights reserved.
* This file is made available under the terms of the Common Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/cpl-v10.html
*/
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;
}
}
|