查看单个帖子
旧 2009-04-16, 11:09 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】如何在mfc工具栏中调用自定义的cad命令

如何在mfc工具栏中调用自定义的cad命令
如何在mfc工具栏中调用自定义的cad命令
向各位大侠求助,如何在mfc创建的工具栏中调用自定义的cad命令
我的工具条是是从ctoolbar类派生出来的,如何通过响应函数调用自定义的命令"usdbline"
begin_message_map(carxmsghandler, cwnd)
//{{afx_msg_map(carxmsghandler)
on_wm_create()
on_wm_destroy()
on_command(id_button_usdbtext, onbuttonusdbtext)
on_command(id_button_usdbtext, onbuttonusdbline)
//}}afx_msg_map
end_message_map()
void carxmsghandler:nbuttonusdbtext()
{
// todo: add your command handler code here
ads_alert("测试!");
}
void carxmsghandler:nbuttonusdbline()
{
// todo: add your command handler code here
}
看帖记得回帖哦
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)