com.moesol.bindings.platform_sdk.windows_api
Class MENUITEMINFO

java.lang.Object
  extended by com.moesol.bindings.platform_sdk.windows_api.MENUITEMINFO

public class MENUITEMINFO
extends Object

Wraps a java class around a Win32 MENUITEMINFO structure, see the Win32 documentation for more information about the properties. TODO: Refactor to use com.moesol.nio.NativeStructure (uses a non-direct ByteBuffer).


Field Summary
static int MFS_CHECKED
           
static int MFS_DEFAULT
           
static int MFS_DISABLED
           
static int MFS_ENABLED
           
static int MFS_GRAYED
           
static int MFS_HILITE
           
static int MFS_UNCHECKED
           
static int MFS_UNHILITE
           
static int MFT_BITMAP
           
static int MFT_MENUBARBREAK
           
static int MFT_MENUBREAK
           
static int MFT_OWNERDRAW
           
static int MFT_RADIOCHECK
           
static int MFT_RIGHTJUSTIFY
           
static int MFT_RIGHTORDER
           
static int MFT_SEPARATOR
           
static int MFT_STRING
           
static int MIIM_CHECKMARKS
           
static int MIIM_DATA
           
static int MIIM_ID
           
static int MIIM_STATE
           
static int MIIM_SUBMENU
           
static int MIIM_TYPE
           
 
Constructor Summary
MENUITEMINFO()
           
 
Method Summary
 int get_cch()
           
 int get_dwItemData()
           
 String get_dwTypeData()
           
 int get_fMask()
           
 int get_fState()
           
 int get_fType()
           
 HBITMAP get_hbmpChecked()
           
 HBITMAP get_hbmpItem()
           
 HBITMAP get_hbmpUnchecked()
           
 HMENU get_hSubMenu()
           
 int get_wID()
           
 void set_cch(int cch)
           
 void set_dwItemData(int item_data)
           
 void set_dwTypeData(String type_data)
           
 void set_fMask(int mask)
           
 void set_fState(int state)
           
 void set_fType(int type)
           
 void set_hbmpChecked(HBITMAP bitmap)
           
 void set_hbmpItem(HBITMAP bitmap)
          Note that the hbmpItem member of MENUITEMINFO only appears if the JNI side is compiled with _WIN32_WINNT >= 0x0500.
 void set_hbmpUnchecked(HBITMAP bitmap)
           
 void set_hSubMenu(HMENU submenu)
           
 void set_wID(int id)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MIIM_STATE

public static final int MIIM_STATE
See Also:
Constant Field Values

MIIM_ID

public static final int MIIM_ID
See Also:
Constant Field Values

MIIM_SUBMENU

public static final int MIIM_SUBMENU
See Also:
Constant Field Values

MIIM_CHECKMARKS

public static final int MIIM_CHECKMARKS
See Also:
Constant Field Values

MIIM_TYPE

public static final int MIIM_TYPE
See Also:
Constant Field Values

MIIM_DATA

public static final int MIIM_DATA
See Also:
Constant Field Values

MFT_STRING

public static final int MFT_STRING
See Also:
Constant Field Values

MFT_BITMAP

public static final int MFT_BITMAP
See Also:
Constant Field Values

MFT_MENUBARBREAK

public static final int MFT_MENUBARBREAK
See Also:
Constant Field Values

MFT_MENUBREAK

public static final int MFT_MENUBREAK
See Also:
Constant Field Values

MFT_OWNERDRAW

public static final int MFT_OWNERDRAW
See Also:
Constant Field Values

MFT_RADIOCHECK

public static final int MFT_RADIOCHECK
See Also:
Constant Field Values

MFT_SEPARATOR

public static final int MFT_SEPARATOR
See Also:
Constant Field Values

MFT_RIGHTORDER

public static final int MFT_RIGHTORDER
See Also:
Constant Field Values

MFT_RIGHTJUSTIFY

public static final int MFT_RIGHTJUSTIFY
See Also:
Constant Field Values

MFS_GRAYED

public static final int MFS_GRAYED
See Also:
Constant Field Values

MFS_DISABLED

public static final int MFS_DISABLED
See Also:
Constant Field Values

MFS_CHECKED

public static final int MFS_CHECKED
See Also:
Constant Field Values

MFS_HILITE

public static final int MFS_HILITE
See Also:
Constant Field Values

MFS_ENABLED

public static final int MFS_ENABLED
See Also:
Constant Field Values

MFS_UNCHECKED

public static final int MFS_UNCHECKED
See Also:
Constant Field Values

MFS_UNHILITE

public static final int MFS_UNHILITE
See Also:
Constant Field Values

MFS_DEFAULT

public static final int MFS_DEFAULT
See Also:
Constant Field Values
Constructor Detail

MENUITEMINFO

public MENUITEMINFO()
Method Detail

set_fMask

public void set_fMask(int mask)

get_fMask

public int get_fMask()

set_fType

public void set_fType(int type)

get_fType

public int get_fType()

set_fState

public void set_fState(int state)

get_fState

public int get_fState()

set_wID

public void set_wID(int id)

get_wID

public int get_wID()

set_hSubMenu

public void set_hSubMenu(HMENU submenu)

get_hSubMenu

public HMENU get_hSubMenu()

set_hbmpChecked

public void set_hbmpChecked(HBITMAP bitmap)

get_hbmpChecked

public HBITMAP get_hbmpChecked()

set_hbmpUnchecked

public void set_hbmpUnchecked(HBITMAP bitmap)

get_hbmpUnchecked

public HBITMAP get_hbmpUnchecked()

set_dwItemData

public void set_dwItemData(int item_data)

get_dwItemData

public int get_dwItemData()

set_dwTypeData

public void set_dwTypeData(String type_data)

get_dwTypeData

public String get_dwTypeData()

set_cch

public void set_cch(int cch)

get_cch

public int get_cch()

set_hbmpItem

public void set_hbmpItem(HBITMAP bitmap)
Note that the hbmpItem member of MENUITEMINFO only appears if the JNI side is compiled with _WIN32_WINNT >= 0x0500. Therefore this method may throw a IndexOutOfBoundsException.

Throws:
IndexOutOfBoundsException - If JNI side is missing this member.

get_hbmpItem

public HBITMAP get_hbmpItem()
Throws:
IndexOutOfBoundsException - If JNI side is missing this member.


Copyright © 2004 Moebius Solutions, Inc. All Rights Reserved.