Java 类com.sun.jna.platform.win32.WinDef.HMENU 实例源码

项目:synthuse-src    文件:WindowsEnumeratedXml.java   
public static Element buildMenuXmlElements(Document xmlDoc, Element xmlElement, HMENU targetMenu, String targetWin)
{
    MenuInfo firstMi = new MenuInfo(targetWin, targetMenu);
    for (int i = 0 ; i < firstMi.menuCount ; i++ ) {
        MenuInfo menuInfo = new MenuInfo(targetWin, targetMenu, i);
        Element menuElement = xmlDoc.createElement("menu");
        menuElement.setAttribute("unaltered", menuInfo.unaltered + "");
        menuElement.setAttribute("text", menuInfo.text + "");
        menuElement.setAttribute("id", menuInfo.id + "");
        menuElement.setAttribute("position", menuInfo.position + "");
        menuElement.setAttribute("hmenu", menuInfo.hmenuStr + "");
        menuElement.setAttribute("hwnd", menuInfo.hwndStr + "");
        if (!menuInfo.center.isEmpty())
            menuElement.setAttribute("center", menuInfo.center + "");
        if (menuInfo.hasSubMenu) {
            buildMenuXmlElements(xmlDoc, menuElement, menuInfo.submenu, targetWin);
        }
        xmlElement.appendChild(menuElement);
    }
    return xmlElement;
}
项目:Nird2    文件:WindowsShutdownManagerImpl.java   
HWND CreateWindowEx(int styleEx, String className, String windowName,
int style, int x, int y, int width, int height, HWND parent,
HMENU menu, HINSTANCE instance, Pointer param);
项目:Nird2    文件:WindowsShutdownManagerImpl.java   
HWND CreateWindowEx(int styleEx, String className, String windowName,
int style, int x, int y, int width, int height, HWND parent,
HMENU menu, HINSTANCE instance, Pointer param);
项目:briar    文件:WindowsShutdownManagerImpl.java   
HWND CreateWindowEx(int styleEx, String className, String windowName,
int style, int x, int y, int width, int height, HWND parent,
HMENU menu, HINSTANCE instance, Pointer param);