예제 #1
0
 /// <summary>
 /// Add an register a hotkey
 /// </summary>
 /// <param name="hkeyObj">hotkey object</param>
 public void AddHotKey(HotKeyObject hkeyObj)
 {
     if (!mHotKeyIDList.ContainsKey(hkeyObj.HotKeyID))
     {
         short ID = GlobalAddAtom(hkeyObj.HotKeyID);
         mHotKeyIDList.Add(hkeyObj.HotKeyID, ID);
         mHotKeyList.Add(ID, hkeyObj);
         RegisterHotKey(mForm.Handle, (int)ID, (int)mHotKeyList[ID].Modifier, (int)mHotKeyList[ID].HotKey);
     }
 }
예제 #2
0
 public HotKeyObject(HotKeyObject obj)
 {
     HotKey   = obj.HotKey;
     Modifier = obj.Modifier;
     HotKeyID = obj.HotKeyID;
 }