如何在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
}
看帖记得回帖哦