objectarx CAdUi CAcUi

简单说,CAdUi可以用来做AutoCAD及其他的cad平台的Ui

 AcUi仅供AutoCAD使用,集成有AutoCAD的属性支持

ObjectARX has a set of MFC User Interface (UI)-related classes that easily allow you to provide a consistent UI. This means your UI can behave like and have the appearance of the AutoCAD UI. It is highly recommended that you use these classes because they allow your application to be more tightly integrated with the AutoCAD UI. The Autodesk MFC extension classes include the AdUi and AcUi libraries, as well as the libraries that support features like file navigation dialogs and tool palettes. AdUi is not AutoCAD-specific. AcUi contains AutoCAD-specific appearance and behavior. For a complete MFC extension class hierarchy diagram, see classmap.dwg in the ObjectARX classmap directory.

AdUi is an MFC extension DLL used to extend some of the UI-related classes of MFC. The library was developed for use with AutoCAD and other Autodesk products and contains core functionality. The companion library, AcUi, builds upon the AdUi framework and provides AutoCAD-specific appearance and behavior. The AdUi and AcUi libraries provide classes that extend those provided by MFC in ways that allow ObjectARX developers to use the same UI functionality found in AutoCAD. MFC developers can seamlessly use these classes. Listed below are some of the main areas of added functionality provided by AdUi and AcUi. 



CAdUiDockControlBar Class

The CAdUiDockControlBar class, part of a docking system, adds extended capabilities to the MFC CControlBar class. The main feature provided is the resizing of the control bars when docked. More than one control bar can be docked together, each of them being able to be resized individually using splitters created by the docking system. CAdUiDockControlBar also comes with a gripper bar and a close button when docked. Control bars' state can be switched from docked to undocked or vice versa, by double-clicking on the gripper when docked, or the title bar when undocked, or by dragging them with the mouse. The docking system handles the persistency of the control bars, preserving their position and state across sessions. Finally, CAdUiDockControlBar provides a default context menu to control the bar behavior, with a possibility for the developer to customize this menu.

CAcUiDockControlBar Class

The CAcUiDockControlBar class adds to the CAdUiDockControlBar class a behavior common to AutoCAD dockable tools: when the user moves the mouse cursor out of the control bar region, the focus is automatically given back to AutoCAD.


猜你喜欢

转载自blog.csdn.net/jerryzfc/article/details/81035536
今日推荐