Java 类org.eclipse.swt.internal.carbon.HICommand 实例源码

项目:TuxGuitar-1.3.1-fork    文件:MacMenu.java   
public int commandProc(int nextHandler, int theEvent, int userData) {
    if (OS.GetEventKind(theEvent) == OS.kEventProcessCommand) {
        HICommand command= new HICommand();
        OS.GetEventParameter(theEvent,OS.kEventParamDirectObject, OS.typeHICommand, null,HICommand.sizeof, null, command);

        return handleCommand(command.commandID, theEvent);
    }
    return OS.eventNotHandledErr;
}
项目:totallicks-tuxguitar    文件:MacMenu.java   
public int commandProc(int nextHandler, int theEvent, int userData) {
    if (OS.GetEventKind(theEvent) == OS.kEventProcessCommand) {
        HICommand command= new HICommand();
        OS.GetEventParameter(theEvent,OS.kEventParamDirectObject, OS.typeHICommand, null,HICommand.sizeof, null, command);

        return handleCommand(command.commandID, theEvent);
    }
    return OS.eventNotHandledErr;
}