public class Menu extends Common implements IMenuFlag, IWMConsts, com.sun.jna.platform.win32.WinDef
com.sun.jna.platform.win32.WinUser.BLENDFUNCTION, com.sun.jna.platform.win32.WinUser.FLASHWINFO, com.sun.jna.platform.win32.WinUser.GUITHREADINFO, com.sun.jna.platform.win32.WinUser.HARDWAREINPUT, com.sun.jna.platform.win32.WinUser.HHOOK, com.sun.jna.platform.win32.WinUser.HOOKPROC, com.sun.jna.platform.win32.WinUser.INPUT, com.sun.jna.platform.win32.WinUser.KBDLLHOOKSTRUCT, com.sun.jna.platform.win32.WinUser.KEYBDINPUT, com.sun.jna.platform.win32.WinUser.LASTINPUTINFO, com.sun.jna.platform.win32.WinUser.LowLevelKeyboardProc, com.sun.jna.platform.win32.WinUser.MOUSEINPUT, com.sun.jna.platform.win32.WinUser.MSG, com.sun.jna.platform.win32.WinUser.POINT, com.sun.jna.platform.win32.WinUser.SIZE, com.sun.jna.platform.win32.WinUser.WINDOWINFO, com.sun.jna.platform.win32.WinUser.WNDENUMPROC
com.sun.jna.platform.win32.WinDef.DWORD, com.sun.jna.platform.win32.WinDef.DWORDLONG, com.sun.jna.platform.win32.WinDef.HBITMAP, com.sun.jna.platform.win32.WinDef.HCURSOR, com.sun.jna.platform.win32.WinDef.HDC, com.sun.jna.platform.win32.WinDef.HFONT, com.sun.jna.platform.win32.WinDef.HICON, com.sun.jna.platform.win32.WinDef.HINSTANCE, com.sun.jna.platform.win32.WinDef.HMENU, com.sun.jna.platform.win32.WinDef.HMODULE, com.sun.jna.platform.win32.WinDef.HPALETTE, com.sun.jna.platform.win32.WinDef.HPEN, com.sun.jna.platform.win32.WinDef.HRGN, com.sun.jna.platform.win32.WinDef.HRSRC, com.sun.jna.platform.win32.WinDef.HWND, com.sun.jna.platform.win32.WinDef.INT_PTR, com.sun.jna.platform.win32.WinDef.LONG, com.sun.jna.platform.win32.WinDef.LPARAM, com.sun.jna.platform.win32.WinDef.LRESULT, com.sun.jna.platform.win32.WinDef.RECT, com.sun.jna.platform.win32.WinDef.UINT_PTR, com.sun.jna.platform.win32.WinDef.ULONG, com.sun.jna.platform.win32.WinDef.ULONGLONG, com.sun.jna.platform.win32.WinDef.WORD, com.sun.jna.platform.win32.WinDef.WPARAM
MF_BYCOMMAND, MF_BYPOSITION, MFS_CHECKED, MFS_DEFAULT, MFS_DISABLED, MFS_ENABLED, MFS_GRAYED, MFS_HILITE, MFS_UNCHECKED, MFS_UNHILITE, MFT_BITMAP, MFT_MENUBARBREAK, MFT_MENUBREAK, MFT_OWNERDRAW, MFT_RADIOCHECK, MFT_RIGHTJUSTIFY, MFT_RIGHTORDER, MFT_SEPARATOR, MFT_STRING, MIIM_BITMAP, MIIM_CHECKMARKS, MIIM_DATA, MIIM_FTYPE, MIIM_ID, MIIM_STATE, MIIM_STRING, MIIM_SUBMENU, MIIM_TYPE
WM_ACTIVATE, WM_ACTIVATEAPP, WM_AFXFIRST, WM_AFXLAST, WM_APP, WM_ASKCBFORMATNAME, WM_CANCELJOURNAL, WM_CANCELMODE, WM_CAPTURECHANGED, WM_CHANGECBCHAIN, WM_CHANGEUISTATE, WM_CHAR, WM_CHARTOITEM, WM_CHILDACTIVATE, WM_CLEAR, WM_CLOSE, WM_COMMAND, WM_COMPACTING, WM_COMPAREITEM, WM_CONTEXTMENU, WM_COPY, WM_COPYDATA, WM_CREATE, WM_CTLCOLORBTN, WM_CTLCOLORDLG, WM_CTLCOLOREDIT, WM_CTLCOLORLISTBOX, WM_CTLCOLORMSGBOX, WM_CTLCOLORSCROLLBAR, WM_CTLCOLORSTATIC, WM_CUT, WM_DEADCHAR, WM_DELETEITEM, WM_DESTROY, WM_DESTROYCLIPBOARD, WM_DEVICECHANGE, WM_DEVMODECHANGE, WM_DISPLAYCHANGE, WM_DRAWCLIPBOARD, WM_DRAWITEM, WM_DROPFILES, WM_ENABLE, WM_ENDSESSION, WM_ENTERIDLE, WM_ENTERMENULOOP, WM_ENTERSIZEMOVE, WM_ERASEBKGND, WM_EXITMENULOOP, WM_EXITSIZEMOVE, WM_FONTCHANGE, WM_GETDLGCODE, WM_GETFONT, WM_GETHOTKEY, WM_GETICON, WM_GETMINMAXINFO, WM_GETOBJECT, WM_GETTEXT, WM_GETTEXTLENGTH, WM_HANDHELDFIRST, WM_HANDHELDLAST, WM_HELP, WM_HOTKEY, WM_HSCROLL, WM_HSCROLLCLIPBOARD, WM_ICONERASEBKGND, WM_IME_CHAR, WM_IME_COMPOSITION, WM_IME_COMPOSITIONFULL, WM_IME_CONTROL, WM_IME_ENDCOMPOSITION, WM_IME_KEYDOWN, WM_IME_KEYLAST, WM_IME_KEYUP, WM_IME_NOTIFY, WM_IME_REQUEST, WM_IME_SELECT, WM_IME_SETCONTEXT, WM_IME_STARTCOMPOSITION, WM_INITDIALOG, WM_INITMENU, WM_INITMENUPOPUP, WM_INPUTLANGCHANGE, WM_INPUTLANGCHANGEREQUEST, WM_KEYDOWN, WM_KEYFIRST, WM_KEYLAST, WM_KEYUP, WM_KILLFOCUS, WM_LBUTTONDBLCLK, WM_LBUTTONDOWN, WM_LBUTTONUP, WM_MBUTTONDBLCLK, WM_MBUTTONDOWN, WM_MBUTTONUP, WM_MDIACTIVATE, WM_MDICASCADE, WM_MDICREATE, WM_MDIDESTROY, WM_MDIGETACTIVE, WM_MDIICONARRANGE, WM_MDIMAXIMIZE, WM_MDINEXT, WM_MDIREFRESHMENU, WM_MDIRESTORE, WM_MDISETMENU, WM_MDITILE, WM_MEASUREITEM, WM_MENUCHAR, WM_MENUCOMMAND, WM_MENUDRAG, WM_MENUGETOBJECT, WM_MENURBUTTONUP, WM_MENUSELECT, WM_MOUSEACTIVATE, WM_MOUSEFIRST, WM_MOUSEHOVER, WM_MOUSEHWHEEL, WM_MOUSELAST, WM_MOUSELEAVE, WM_MOUSEMOVE, WM_MOUSEWHEEL, WM_MOVE, WM_MOVING, WM_NCACTIVATE, WM_NCCALCSIZE, WM_NCCREATE, WM_NCDESTROY, WM_NCHITTEST, WM_NCLBUTTONDBLCLK, WM_NCLBUTTONDOWN, WM_NCLBUTTONUP, WM_NCMBUTTONDBLCLK, WM_NCMBUTTONDOWN, WM_NCMBUTTONUP, WM_NCMOUSEMOVE, WM_NCPAINT, WM_NCRBUTTONDBLCLK, WM_NCRBUTTONDOWN, WM_NCRBUTTONUP, WM_NCUAHDRAWCAPTION, WM_NCUAHDRAWFRAME, WM_NEXTDLGCTL, WM_NEXTMENU, WM_NOTIFY, WM_NOTIFYFORMAT, WM_NULL, WM_PAINT, WM_PAINTCLIPBOARD, WM_PAINTICON, WM_PALETTECHANGED, WM_PALETTEISCHANGING, WM_PARENTNOTIFY, WM_PASTE, WM_PENWINFIRST, WM_PENWINLAST, WM_POWER, WM_POWERBROADCAST, WM_PRINT, WM_PRINTCLIENT, WM_QUERYDRAGICON, WM_QUERYENDSESSION, WM_QUERYNEWPALETTE, WM_QUERYOPEN, WM_QUEUESYNC, WM_QUIT, WM_RBUTTONDBLCLK, WM_RBUTTONDOWN, WM_RBUTTONUP, WM_RENDERALLFORMATS, WM_RENDERFORMAT, WM_SETCURSOR, WM_SETFOCUS, WM_SETFONT, WM_SETHOTKEY, WM_SETICON, WM_SETREDRAW, WM_SETTEXT, WM_SETTINGCHANGE, WM_SHOWWINDOW, WM_SIZE, WM_SIZECLIPBOARD, WM_SIZING, WM_SPOOLERSTATUS, WM_STYLECHANGED, WM_STYLECHANGING, WM_SYNCPAINT, WM_SYSCHAR, WM_SYSCOLORCHANGE, WM_SYSCOMMAND, WM_SYSDEADCHAR, WM_SYSKEYDOWN, WM_SYSKEYUP, WM_TCARD, WM_TIMECHANGE, WM_TIMER, WM_UNDO, WM_UNINITMENUPOPUP, WM_USER, WM_USERCHANGED, WM_VKEYTOITEM, WM_VSCROLL, WM_VSCROLLCLIPBOARD, WM_WINDOWPOSCHANGED, WM_WINDOWPOSCHANGING, WM_WININICHANGE, WM_XBUTTONDBLCLK, WM_XBUTTONDOWN, WM_XBUTTONUP
AC_SRC_ALPHA, AC_SRC_NO_ALPHA, AC_SRC_NO_PREMULT_ALPHA, AC_SRC_OVER, DWL_DLGPROC, DWL_MSGRESULT, DWL_USER, FLASHW_ALL, FLASHW_CAPTION, FLASHW_STOP, FLASHW_TIMER, FLASHW_TIMERNOFG, FLASHW_TRAY, GW_CHILD, GW_ENABLEDPOPUP, GW_HWNDFIRST, GW_HWNDLAST, GW_HWNDNEXT, GW_HWNDPREV, GW_OWNER, GWL_EXSTYLE, GWL_HINSTANCE, GWL_ID, GWL_STYLE, GWL_USERDATA, GWL_WNDPROC, HWND_BROADCAST, IMAGE_BITMAP, IMAGE_CURSOR, IMAGE_ENHMETAFILE, IMAGE_ICON, LR_COLOR, LR_COPYDELETEORG, LR_COPYFROMRESOURCE, LR_COPYRETURNORG, LR_CREATEDIBSECTION, LR_DEFAULTCOLOR, LR_DEFAULTSIZE, LR_LOADFROMFILE, LR_LOADMAP3DCOLORS, LR_LOADTRANSPARENT, LR_MONOCHROME, LR_SHARED, LR_VGACOLOR, LWA_ALPHA, LWA_COLORKEY, MOD_ALT, MOD_CONTROL, MOD_NOREPEAT, MOD_SHIFT, MOD_WIN, RDW_ALLCHILDREN, RDW_ERASE, RDW_ERASENOW, RDW_FRAME, RDW_INTERNALPAINT, RDW_INVALIDATE, RDW_NOCHILDREN, RDW_NOERASE, RDW_NOFRAME, RDW_NOINTERNALPAINT, RDW_UPDATENOW, RDW_VALIDATE, SC_MAXIMIZE, SC_MINIMIZE, SM_ARRANGE, SM_CARETBLINKINGENABLED, SM_CLEANBOOT, SM_CMONITORS, SM_CMOUSEBUTTONS, SM_CXBORDER, SM_CXCURSOR, SM_CXDLGFRAME, SM_CXDOUBLECLK, SM_CXDRAG, SM_CXEDGE, SM_CXFIXEDFRAME, SM_CXFOCUSBORDER, SM_CXFRAME, SM_CXFULLSCREEN, SM_CXHSCROLL, SM_CXHTHUMB, SM_CXICON, SM_CXICONSPACING, SM_CXMAXIMIZED, SM_CXMAXTRACK, SM_CXMENUCHECK, SM_CXMENUSIZE, SM_CXMIN, SM_CXMINIMIZED, SM_CXMINSPACING, SM_CXMINTRACK, SM_CXPADDEDBORDER, SM_CXSCREEN, SM_CXSIZE, SM_CXSIZEFRAME, SM_CXSMICON, SM_CXSMSIZE, SM_CXVIRTUALSCREEN, SM_CXVSCROLL, SM_CYBORDER, SM_CYCAPTION, SM_CYCURSOR, SM_CYDLGFRAME, SM_CYDOUBLECLK, SM_CYDRAG, SM_CYEDGE, SM_CYFIXEDFRAME, SM_CYFOCUSBORDER, SM_CYFRAME, SM_CYFULLSCREEN, SM_CYHSCROLL, SM_CYICON, SM_CYICONSPACING, SM_CYKANJIWINDOW, SM_CYMAXIMIZED, SM_CYMAXTRACK, SM_CYMENU, SM_CYMENUCHECK, SM_CYMENUSIZE, SM_CYMIN, SM_CYMINIMIZED, SM_CYMINSPACING, SM_CYMINTRACK, SM_CYSCREEN, SM_CYSIZE, SM_CYSIZEFRAME, SM_CYSMCAPTION, SM_CYSMICON, SM_CYSMSIZE, SM_CYVIRTUALSCREEN, SM_CYVSCROLL, SM_CYVTHUMB, SM_DBCSENABLED, SM_DEBUG, SM_IMMENABLED, SM_MEDIACENTER, SM_MENUDROPALIGNMENT, SM_MIDEASTENABLED, SM_MOUSEHORIZONTALWHEELPRESENT, SM_MOUSEPRESENT, SM_MOUSEWHEELPRESENT, SM_NETWORK, SM_PENWINDOWS, SM_REMOTECONTROL, SM_REMOTESESSION, SM_RESERVED1, SM_RESERVED2, SM_RESERVED3, SM_RESERVED4, SM_SAMEDISPLAYFORMAT, SM_SECURE, SM_SERVERR2, SM_SHOWSOUNDS, SM_SHUTTINGDOWN, SM_SLOWMACHINE, SM_STARTER, SM_SWAPBUTTON, SM_TABLETPC, SM_XVIRTUALSCREEN, SM_YVIRTUALSCREEN, SW_FORCEMINIMIZE, SW_HIDE, SW_MAX, SW_MAXIMIZE, SW_MINIMIZE, SW_NORMAL, SW_RESTORE, SW_SHOW, SW_SHOWDEFAULT, SW_SHOWMAXIMIZED, SW_SHOWMINIMIZED, SW_SHOWMINNOACTIVE, SW_SHOWNA, SW_SHOWNOACTIVATE, SW_SHOWNORMAL, SWP_NOZORDER, ULW_ALPHA, ULW_COLORKEY, ULW_OPAQUE, VK_CONTROL, VK_LCONTROL, VK_LMENU, VK_LSHIFT, VK_MENU, VK_RCONTROL, VK_RMENU, VK_RSHIFT, VK_SHIFT, WH_KEYBOARD, WH_KEYBOARD_LL, WH_MOUSE, WH_MOUSE_LL, WS_CHILD, WS_EX_COMPOSITED, WS_EX_LAYERED, WS_EX_TRANSPARENT, WS_MAXIMIZE, WS_MINIMIZE, WS_POPUP, WS_VISIBLE
FUNCTION_MAPPER, STDCALL_CONVENTION
OPTION_ALLOW_OBJECTS, OPTION_CALLING_CONVENTION, OPTION_FUNCTION_MAPPER, OPTION_INVOCATION_MAPPER, OPTION_OPEN_FLAGS, OPTION_STRUCTURE_ALIGNMENT, OPTION_TYPE_MAPPER
ICC_ALL, ICC_ANIMATE_CLASS, ICC_BAR_CLASSES, ICC_COOL_CLASSES, ICC_DATE_CLASSES, ICC_HOTKEY_CLASS, ICC_INTERNET_CLASSES, ICC_LINK_CLASS, ICC_LISTVIEW_CLASSES, ICC_NATIVEFNTCTL_CLASS, ICC_PAGESCROLLER_CLASS, ICC_PROGRESS_CLASS, ICC_STANDARD_CLASSES, ICC_TAB_CLASSES, ICC_TREEVIEW_CLASSES, ICC_UPDOWN_CLASS, ICC_USEREX_CLASSES, ICC_WIN95_CLASSES
Constructor and Description |
---|
Menu()
.
|
Modifier and Type | Method and Description |
---|---|
int |
getMenuDefaultItem(long hMenu,
int fByPos,
int gmdiFlags)
.
|
boolean |
getMenuInfo(long hmenu,
WinDefExt.MENUINFO lpcmi)
.
|
int |
getMenuItemCount(long hMenu)
.
|
int |
getMenuItemID(long hMenu,
int nPos)
.
|
boolean |
getMenuItemInfo(long hMenu,
int uItem,
boolean fByPosition,
WinDefExt.MENUITEMINFO lpmii)
.
|
boolean |
getMenuItemRect(long hWnd,
long hMenu,
int uItem,
com.sun.jna.platform.win32.WinDef.RECT rect)
.
|
int |
getMenuState(long hMenu,
int uId,
int uFlags)
.
|
int |
getMenuString(long hMenu,
int uIDItem,
char[] lpString,
int nMaxCount,
int uFlag)
.
|
long |
getSubMenu(long hMenu,
int nPos)
.
|
boolean |
isMenu(long hMenu)
.
|
boolean |
pickItem(long hwnd,
long hMenu,
int iPos)
.
|
getCommCtl32, getDlg32, getKernel32, getShell32, getUser32, initCommonControls, longToHmenu, longToHwnd, makeLong, makeLParam, makeWParam, postMessage, sendMessage
public final int getMenuDefaultItem(long hMenu, int fByPos, int gmdiFlags)
hMenu
- .fByPos
- .gmdiFlags
- .public final boolean getMenuInfo(long hmenu, WinDefExt.MENUINFO lpcmi)
hmenu
- .lpcmi
- .public final int getMenuItemCount(long hMenu)
hMenu
- .public final int getMenuItemID(long hMenu, int nPos)
hMenu
- .nPos
- .public final boolean getMenuItemInfo(long hMenu, int uItem, boolean fByPosition, WinDefExt.MENUITEMINFO lpmii)
hMenu
- .uItem
- .fByPosition
- .lpmii
- .public final boolean getMenuItemRect(long hWnd, long hMenu, int uItem, com.sun.jna.platform.win32.WinDef.RECT rect)
hWnd
- .hMenu
- .uItem
- .rect
- .public final int getMenuState(long hMenu, int uId, int uFlags)
hMenu
- .uId
- .uFlags
- .public final int getMenuString(long hMenu, int uIDItem, char[] lpString, int nMaxCount, int uFlag)
hMenu
- .uIDItem
- .lpString
- .nMaxCount
- .uFlag
- .public final long getSubMenu(long hMenu, int nPos)
hMenu
- .nPos
- .public final boolean isMenu(long hMenu)
hMenu
- .public final boolean pickItem(long hwnd, long hMenu, int iPos)
hwnd
- .hMenu
- .iPos
- .Copyright © 2013. All rights reserved.