概览
示例
截图
比较
应用
下载
手册
集市
现状与日程
常见问题
作者与许可证
论坛
资助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ă, русский中文(繁體)版本. 你想帮忙吗?