一个关于响应CPropertySheet “OK”按钮(确认)按钮的方法试验
来源:互联网 发布:linux vim 复制 编辑:程序博客网 时间:2024/06/10 20:11
1. Add this to the property sheet's structure.
: : // Generated message map functions
: protected:
: //{{AFX_MSG(CMyPropertySheet)
: // NOTE - the ClassWizard will add and remove member functions here.
: afx_msg void OnOK();
: //}}AFX_MSG
: DECLARE_MESSAGE_MAP()
: };
:
:
: 2. Add a message map for the OnOK event handler in the property sheet's *.cpp file.
: : BEGIN_MESSAGE_MAP(CMyPropertySheet, CPropertySheet)
: //{{AFX_MSG_MAP(CMyPropertySheet)
: // NOTE - the ClassWizard will add and remove mapping macros here.
: ON_COMMAND(IDOK, OnOK)
: //}}AFX_MSG_MAP
: END_MESSAGE_MAP()
:
:
:
: 3. Now just add the event handler itself. This one just displays something.
: : void CMyPropertySheet::OnOK()
: {
: AfxMessageBox("Hello World");
: CPropertySheet::OnClose();
: }
:
:
:
That last function should have looked like this:
void CMyPropertySheet::OnOK()
{
AfxMessageBox("Hello World");
CPropertySheet::EndDialog(IDOK);
}
: : // Generated message map functions
: protected:
: //{{AFX_MSG(CMyPropertySheet)
: // NOTE - the ClassWizard will add and remove member functions here.
: afx_msg void OnOK();
: //}}AFX_MSG
: DECLARE_MESSAGE_MAP()
: };
:
:
: 2. Add a message map for the OnOK event handler in the property sheet's *.cpp file.
: : BEGIN_MESSAGE_MAP(CMyPropertySheet, CPropertySheet)
: //{{AFX_MSG_MAP(CMyPropertySheet)
: // NOTE - the ClassWizard will add and remove mapping macros here.
: ON_COMMAND(IDOK, OnOK)
: //}}AFX_MSG_MAP
: END_MESSAGE_MAP()
:
:
:
: 3. Now just add the event handler itself. This one just displays something.
: : void CMyPropertySheet::OnOK()
: {
: AfxMessageBox("Hello World");
: CPropertySheet::OnClose();
: }
:
:
:
That last function should have looked like this:
void CMyPropertySheet::OnOK()
{
AfxMessageBox("Hello World");
CPropertySheet::EndDialog(IDOK);
}
- 一个关于响应CPropertySheet “OK”按钮(确认)按钮的方法试验
- CPropertySheet响应系统关闭按钮
- CPropertySheet去掉“帮助”等按钮的方法
- 去掉CPropertySheet中的帮助按钮的方法
- 关于扩大按钮响应区域的方法
- CPropertySheet的按钮的修改
- CPropertySheet的按钮的修改
- [转] CPropertySheet的按钮的修改
- 怎样去掉 CPropertySheet 的帮助,应用按钮
- CPropertySheet里的帮助按钮如何去掉
- 按钮 只响应一个
- cocos2dx --- 关于模态弹窗中按钮响应的问题
- WINCE下对话框中添加OK按钮的方法
- 实现按钮响应的几种方法
- 【Android】滑动确认的按钮
- wtl CPropertySheet 去掉 “应用”按钮
- 响应按钮的事件
- 响应按钮的事件
- latex 笔记1
- uploadify一个好用的jquery上传插件
- 我现在用C语言实现了YUV420到RGB的转换,现在要根据这个C写verilog,怎么写?
- java分组写入Excel
- 重视基础,做个有远见的人
- 一个关于响应CPropertySheet “OK”按钮(确认)按钮的方法试验
- 常见UI设计模式
- 价格奥秘-在超市遇见亚当斯密--第一章地震时趁机涨价的超市才最公平?
- 转的
- C#反射 与 枚举类型
- Android的BUG,一个频繁重启问题
- 关于在c#中嵌入sql代码的问题
- 孙鑫MFC笔记之十四--多线程同步与异步套接字编程
- java实现的常用压缩算法