- 9
- 0
- 约3.08千字
- 约 8页
- 2017-06-17 发布于湖北
- 举报
一、创建应用工程
??????? 1、创建单文档应用工程
????????2、添加新单文档应用工程
二、编辑菜单项
??????? 1、编辑Thread工程之菜单项
??????? 2、编辑Child工程之菜单项
三、添加变量、函数
??????? 1、添加变量
????????????? a、为CThreadView类添加变量
????????????? b、为CChildView类添加变量
??????? 2、添加函数
????????????? a、为CThreadView类添加菜单消息响应函数
????????????? b、为CChildView类添加菜单消息响应函数
四、添加代码
??????? 1、为CThreadView类添加代码
????????????? a、添加初始化代码
CThreadView::CThreadView(){?// TODO: add construction code here??? pipe=NULL;}
CThreadView::~CThreadView(){?if(pipe)? CloseHandle(pipe);}
????????????? b、添加消息响应函数代码
void CThreadView::OnPipeCreate() {?// TODO: Add your command handler co
原创力文档

文档评论(0)