第一印象
範例程式
截圖
與其它函式庫比較
相關應用
下載
教學文件
作品展示(Bazaar)
現狀及發展藍圖
常見問題(FAQ)
作者與授權
論壇
資助Ultimate++
搜尋本網站
語言
中文(繁體)











SourceForge.net Logo



HotKey

 

Ctrl::RegisterSystemHotKey demonstration

 

 

main.cpp

 

#include <CtrlLib/CtrlLib.h>

 

using namespace Upp;

 

void HotKey1()

{

    PromptOK("HotKey1");

}

 

void HotKey2()

{

    PromptOK("HotKey2");

}

 

GUI_APP_MAIN

{

    TopWindow win;

    int id = Ctrl::RegisterSystemHotKey(K_CTRL|K_F1, callback(HotKey1));

    Ctrl::RegisterSystemHotKey(K_ALT|K_CTRL|K_SHIFT|K_A, callback(HotKey2));

    win.Run();

    Ctrl::UnregisterSystemHotKey(id);

    win.Run();

}

 

 

 

 

本頁也正在english, català, čeština, deutsch, español, euskara, français, română, русский中文(简体)中. 你想幫忙嗎?