ObjectARX菜单编程参考函数

ObjectARX菜单编程涉及到如下函数,现将函数列出。以下英文解释默认是参考ObjectARX for AutoCAD2010,部分参考MSDN.

 

1.acedGetAcadFrame()   (参考ObjectARX for AutoCAD2010)

Description:

This function is used to get the pointer to AutoCAD's main frame window. 

For building ObjectARX applications with a static MFC library, or when not using the same shared MFC DLL as AutoCAD, a pointer to a window cannot be used. Instead, use the window handle. To get the window handle, use acedGetAcadFrame()->m_hWnd; 

 

2.GetMenuItemCount()   (参考MSDN,菜单部分有疑问可参考MSDN)

Description:

Determines the number of items in a pop-up or top-level menu.

Return Value:

The number of items in the menu if the function is successful; otherwise –1.

 

3.CreateMenu()   (参考MSDN)

Description:

Creates a menu and attaches it to the CMenu object.

Return Value:

Nonzero if the menu was created successfully; otherwise 0.

 

4.CreatePopupMenu()   (参考MSDN)

Description:

Creates a pop-up menu and attaches it to the CMenu object.

Return Value:

Nonzero if the pop-up menu was successfully created; otherwise 0.

 

5.AppendMenu()   (参考MSDN)

Description:

Appends a new item to the end of a menu.

Return Value:

Nonzero if the function is successful; otherwise 0.

 

6.AppendMenu()   (参考MSDN)

Description:

Detaches a Windows menu from a CMenu object and returns the handle.

Return Value:

The handle, of type HMENU, to a Windows menu, if successful; otherwise NULL.

 

7.acedRegisterFilterWinMsg()   (参考ObjectARX for AutoCAD2010)

Description:

Register a filter message hook into AutoCAD's Windows message loop. The message passed to your application can be changed and can be blocked out.

Returns TRUE if successfully registers the hook. Otherwise, returns FALSE.

AcedFilterWinMsgFn is typedef BOOL (* AcedFilterWinMsgFn)(MSG*);

The function pointed to by pfn can change the value of MSG passed to it. If the function returns FALSE, the message will be passed to other hook functions and AutoCAD, provided that the other hooks don't block out the message.

If the function returns TRUE, the message will not be passed to other hook functions or AutoCAD. The message is terminated.

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
ObjectARX是由Autodesk公司开发的一种软件开发工具包,旨在帮助开发人员创建基于AutoCAD平台的自定义应用程序。ObjectARX 2020是其最新版本,为开发人员提供了强大的功能和工具,以便快速、高效地构建和定制AutoCAD和其他与之相关的应用程序。 ObjectARX 2020中文参考指南是一本详尽的文档,旨在帮助开发人员理解和掌握ObjectARX 2020开发环境和相关技术。该指南提供了对ObjectARX 2020的完整介绍,包括开发环境的设置和配置、常用的开发工具和库、ObjectARX应用程序的结构和组织、对象和类的定义等核心概念。 指南中还包含了详细的API文档,列出了ObjectARX 2020中可用的各种函数和方法,以及它们的参数和用法说明。开发人员可以根据自己的需求,查找和使用适当的API来实现自定义功能和交互。 此外,ObjectARX 2020中文参考指南还提供了丰富的示例代码和实用技巧,帮助开发人员更好地理解和应用ObjectARX 2020的各种功能。通过这些示例和技巧,开发人员可以快速入门,实现各种自定义应用程序的开发需求。 总而言之,ObjectARX 2020中文参考指南对于想要深入了解和使用ObjectARX 2020进行开发的人来说是一本非常有价值的参考工具。它提供了全面的指导和资源,帮助开发人员利用ObjectARX 2020的强大功能和工具,实现自定义应用程序的开发和定制。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值