首 页 | 新 闻 | Symbian | Android| Windows Mobile | J2ME | 下载中心 | 游戏策划招聘与求职 | 购书指南 | 视频教程
您现在的位置: 开发视界 >> Symbian >> 用户界面 >> 正文
如何处理UIQ Dialog里面控件的事件
作者:m整理    文章来源:本站原创    更新时间:2005-11-10 13:20:43

UIQ:小生在Dialog的DLG_LINE自定义两个按钮,请问大侠如何处理我点击不同按钮时有不同的响应?
从CEikDialog继承自己的Dialog类(假设为CMyDialog),重载HandleControlEventL()

void CMyDialog::HandleControlEventL(CCoeControl* aControl,TCoeEvent aEventType)
    {
    if(aControl==iCommandButton1)
        {
        // event handling for the first command button
        }
else if(aControl==iCommandButton2)
        {
        // event handling for the second command button
        }
    else
        {
        // event handling for other controls
        }
    }

 

相关文章:
MMI of UIQ (一)
在消息对话框中创建链接
symbian中的几个API
防止资源文件列表中出现保留的ID
上下文相关帮助本地化方案 (下)
小糊涂学symbian日记(1)
 

站点地图 | 加入收藏 | 联系站长 | 广告服务 |
QQ:280529124  Tel:0592-8271361 辽ICP备05021703号