几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   ObjectARX(C++) (http://www.dimcax.com/hust/forumdisplay.php?f=34)
-   -   【转帖】如何在mfc工具栏中调用自定义的cad命令 (http://www.dimcax.com/hust/showthread.php?t=7363)

yang686526 2009-04-16 11:09 PM

【转帖】如何在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::onbuttonusdbtext()
{
// todo: add your command handler code here
ads_alert("测试!");
}
void carxmsghandler::onbuttonusdbline()
{
// todo: add your command handler code here
}
看帖记得回帖哦


所有的时间均为北京时间。 现在的时间是 09:08 AM.