Share

MFC Extension Classes (WIN)

Classes

Class Description
AdApplicationFrame This class represents ApplicationFrame in the AppFrame component.
CAcExtensionModule This class serves two purposes. First, it provides a placeholder for an AFX_EXTENSION_MODULE structure (normally used to initialize or terminate an MFC extension DLL) and secondly it tracks two resource providers for the DLL. The resource providers are the module's resources (normally the DLL itself, but may be set to some other module) and the default resources (normally the host application, actually the provider currently active when AttachInstance() is called). CAcExtensionModule tracks these to simplify switching MFC's resource lookup between the default and the module's. A DLL should create exactly one instance of this class and provide the implementation for... more
CAcModuleResourceOverride Use an instance of this class to switch between default and module's resources. When the object is constructed, a new resource provider will be switched in. Upon destruction the original resource provider will be restored. For example:
CAcUiAngleComboBox The CAcUiAngleComboBox class provides a specific implementation of CAcUiComboBox that automatically provides the AC_ES_ANGLE flag for data validation of AutoCAD angles. Data will be converted to the units value provided by the system variable AUPREC and AUNITS, which are also governed by the UNITS command. Please see CAcUiComboBox for the complete set of member variables and functions that are provided.
CAcUiAngleEdit The CAcUiAngleEdit class provides a specific implementation of CAcUiEdit that automatically provides the AC_ES_ANGLE flag for data validation of AutoCAD angles. Data will be converted to the units value provided by the system variable AUPREC and AUNITS, which are also governed by the UNITS command. Please see CAcUiEdit for the complete set of member variables and functions that are provided.
CAcUiArrowHeadComboBox This class specializes CAcUiMRUComboBox for dimensioning arrowhead selection. The arrowhead control displays bitmaps representing the standard twenty AutoCAD dimensioning arrowhead styles, which are always present in the list (note that an item corresponding to "Origin2" may be selectively excluded). By default no optional or additional items are present or added. The cargo associated with each item is the AutoCAD index for the associated stock arrowhead (0 to 19). When MRU items are added to the list, they are automatically assigned a unique cargo value greater than AutoCAD’s index for a user-defined arrowhead style.
CAcUiBitmapButtonCAcUiBitmapButton inherits from the CAdUiBitmapButton class for use with AutoCAD. It does not specialize any behavior of CAdUiBitmapButton, but is provided for the AcUi library. Refer to CAdUiBitmapButton for complete details of the member functions and member data that are part of this derived class.
CAcUiBitmapStaticCAcUiBitmapStatic inherits from the CAdUiBitmapStatic class for use with AutoCAD. It does not specialize any behavior of CAdUiBitmapStatic, but is provided for the AcUi library. Refer to CAdUiBitmapStatic for complete details of the member functions and member data that are part of this derived class.
CAcUiColorComboBox This class specializes CAcUiMRUComboBox for color selection. The color combobox displays color swatches representing selections from AutoCAD's palette. The stock items always present in the control reflect color numbers 1 through 7. Both of the optional items are used: Option1 displays "ByLayer" and Option2 displays "ByBlock". MRU items display "Color nnn" where nnn is the associated color number. The cargo associated with each item indicates an AutoCAD color number (1 to 255), ByBlock is associated with 0, and ByLayer with 256. The Other1 item is enabled and triggers the AutoCAD Color selection dialog. If Other2 is enabled it displays as... more
CAcUiComboBox This class specializes CAcUiMRUComboBox for color selection. The color combobox displays color swatches representing selections from AutoCAD's palette. The stock items always present in the control reflect color numbers 1 through 7. Both of the optional items are used: Option1 displays "ByLayer" and Option2 displays "ByBlock". MRU items display "Color nnn" where nnn is the associated color number. The cargo associated with each item indicates an AutoCAD color number (1 to 255), ByBlock is associated with 0, and ByLayer with 256. The Other1 item is enabled and triggers the AutoCAD Color selection dialog. If Other2 is enabled it displays as... more
CAcUiDialogCAcUiDialog specializes the CAdUiDialog class for use with AutoCAD. Refer to CAdUiDialog for complete details of the member functions and member data that are part of this derived class.See "Built-In MFC User Interface Support" in the ObjectARX Developer's Guide for an explanation of the distinction between CAdUi and CAcUi classes.
CAcUiDockControlBar The CAdUiDockControlBar class inherits almost all the standard behavior of the CAdUiDockControlbar class. It implements the overridable CanFrameworkTakeFocus(). This overridable is called by the docking system when AutoCAD requests the focus. The CAdUiDockControlBar implementation allows AutoCAD to get the focus only if the mouse pointer is outside the control bar area. Otherwise, the control bar keeps the focus. This is the way the AutoCAD docking tools usually behave, so derive from CAcUiDockControlBar instead of CAdUiDockControlBar to get the same behavior.
CAcUiDockFrame For internal use only.
CAcUiDropSiteCAcUiDropSite inherits from the CAdUiDropSite class for use with AutoCAD. It does not specialize any behavior of CAdUiDropSite, but is provided for the AcUi library. Refer to CAdUiDropSite for complete details of the member functions and member data that are part of this derived class.
CAcUiEdit The AcUi system provides the CAcUiEdit class to extend the basic CAdUiComboBox class and add AutoCAD-specific data validation. This class adds input validation that is specific to AutoCAD, and provides a Tooltip-like tool for truncated text items: TextTips. This class takes bit flags to add desired validation behavior, based on the following types of input: Numeric, String, Angular, and Symbol names.Generally, you should use one of the classes derived from CAcUiEdit, that add persistency flags to the Edit Control class to verify specific AutoCAD data types:
CAcUiFileDialogCAcUiFileDialog specializes the CAdUiFileDialog class for use with AutoCAD. Refer to CAdUiFileDialog for complete details of the member functions and member data that are part of this derived class.
CAcUiLineWeightComboBox This class specializes CAcUiMRUComboBox for lineweight selection. The lineweight control displays a small preview of the lineweights AutoCAD supports, ranging from zero to 2.11mm, and optionally includes "Default" (representing AutoCAD's default lineweight). Both metric and imperial values are displayed, depending on the setting of the LWUNITS system variable. Both optional items are used: Option1 displays "ByLayer" and Option2 displays "ByBlock". Each item maintains cargo that corresponds to the item's AcDb::kLnWtxxx value. No additional items are added because AutoCAD probably won't make use of linetypes that aren't already in the list. Even though the lineweight control generally has no need for... more
CAcUiMRUComboBox AcUi extends combobox support to automatically manage a MRU (most recently used) list within the control. The basic functionality is provided by the class CAcUiMRUComboBox (derived from CAcUiComboBox). A companion class, CAcUiMRUListBox, provides DrawTip support for the combobox's ComboLBox. This is necessary due to the MRU combobox implementation as an owner-draw control.The MRU controls display a list of items containing a small image followed by some text. Each item also manages a unique value, referred to as cargo, and maintained as standard Windows ITEMDATA within the control. To be useful, items should not have empty text or... more
CAcUiMRUListBox This class derives from CAcUiListBox. It is used by CAcUiMRUComboBox to subclass the control's listbox (ComboLBox) and provide DrawTip support.
CAcUiNavDialog This class represents the AutoCAD form of the file navigation dialog. It is subclassed from the CNavDialog class. It can be used directly or subclassed to add behavior or customize default behavior.
CAcUiNumericComboBox The CAcUiNumericComboBox class provides a specific implementation of CAcUiEdit that automatically provides the AC_ES_NUMERIC flag for data validation of AutoCAD numeric values. Data will be converted to the units value provided by the system variable LUPREC and LUNITS, which are also governed by the UNITS command. Please see CAcUiComboBox for the complete set of member variables and functions that are provided.
CAcUiNumericEdit The CAcUiNumericEdit class provides a specific implementation of CAcUiEdit that automatically provides the AC_ES_NUMERIC flag for data validation of AutoCAD numeric values. Data will be converted to the units value provided by the system variable LUPREC and LUNITS, which are also governed by the UNITS command. Please see CAcUiEdit for the complete set of member variables and functions that are provided.
CAcUiOwnerDrawButtonCAcUiOwnerDrawButton inherits from the CAdUiOwnerDrawButton class for use with AutoCAD. It does not specialize any behavior of CAdUiOwnerDrawButton, but is provided for the AcUi library. Refer to CAdUiOwnerDrawButton for complete details of the member functions and member data that are part of this derived class.
CAcUiPathname This class specializes the CAdUiPathname class for AutoCAD.
CAcUiPickButton This class specializes CAdUiBitmapButton to provide a button that displays a standard bitmap.The constructor for this class sets the resource ID of the image AutoLoad() will retrieve. Consequently the resource ID should not be specified in the button's text using a resource editor. However, the button's text may still be set to provide tool-tip text.
CAcUiPlotStyleNamesComboBox This class provides a stock combobox that lists available plot style names. It can conditionally lists "ByLayer" and "ByBlock" and/or "Other..." as top level items. The "Other..." item, if present, can conditionally display the Select Plot Style dialog or the CurrentPlotStyle dialog. At the top level, only plot style names that are in the plot style dictionary for the current drawing database are shown. If any of these plot styles are not in the currently active plot style table, they are not shown. If in color dependent mode, this control is disabled and displays the item "ByColor". Note that if... more
CAcUiPlotStyleTablesComboBox This class provides a stock combobox that lists available plot style table file base names. It operates in two modes, color dependent mode and named mode. In color dependent mode, it lists the color dependent plot style table file base names and "None". In named mode, it lists the named plot style table file base names and "None". If the file has a translation table in it, a bitmap indicator is displayed with the file name. If the file is missing, it is flagged with "(missing)" after the file name. Note that if there is more than one plot style... more
CAcUiPredefBlockComboBox CAcUiPredefBlockComboBox is an existing class intended for internal use only.
CAcUiQuickSelectButton This class is used to create a bitmap button that uses quick select icon as default icon.
CAcUiSelectButton This class specializes CAcUiPickButton to provide a button that displays a standard 'select objects' bitmap.The constructor for this class sets the resource ID of the image that AutoLoad() will retrieve. Consequently, the resource ID should not be specified in the button's text using a resource editor. However, the button's text may still be set to provide tool-tip text.
CAcUiStringComboBox The CAcUiStringComboBox class provides a specific implementation of CAcUiEdit that automatically provides the AC_ES_STRING flag for data validation of AutoCAD angles. Please see CAcUiComboBox for the complete set of member variables and functions that are provided.
CAcUiStringEdit The CAcUiStringEdit class provides a specific implementation of CAcUiEdit that automatically provides the AC_ES_STRING flag for data validation of AutoCAD string values. Please see CAcUiEdit for the complete set of member variables and functions that are provided.
CAcUiSymbolComboBox The CAcUiSymbolComboBox class provides a specific implementation of CAcUiEdit that automatically provides the AC_ES_SYMBOL flag for data validation of AutoCAD angles. Please see CAcUiComboBox for the complete set of member variables and functions that are provided.
CAcUiSymbolEdit Please see CAcUiEdit for the complete set of member variables and functions that are provided.
CAcUiTabCAcUiTab inherits from the CAdUiTab class for use with AutoCAD. It does not specialize any behavior of CAdUiTab, but is provided for the AcUi library. Refer to CAdUiOwnerDrawButton for complete details of the member functions and member data that are part of this derived class.
CAcUiTabChildDialogCAcUiTabChildDialog specializes the CAdUiTabChildDialog class for use with AutoCAD. Refer to CAdUiTabChildDialog for complete details of the member functions and member data that are part of this derived class.
CAcUiTabMainDialogCAcUiTabMainDialog specializes the CAdUiTabMainDialog class for use with AutoCAD. Refer to CAdUiTabMainDialog for complete details of the member functions and member data that are part of this derived class.
CAcUiToolButtonCAcUiToolButton inherits from the CAdUiToolButton class for use with AutoCAD. It does not specialize any behavior of CAdUiToolButton, but is provided for the AcUi library. Refer to CAdUiToolButton for complete details of the member functions and member data that are part of this derived class.
CAcUiTrueColorComboBox The CAcUiTrueColorComboBox class specializes CAcUiMRUComboBox for color selection.The color combo box displays color swatches representing the colors given to it as AcCmColor objects. The stock items present in the control reflect color numbers 1 through 7. Both optional items are used: Option1 displays BYLAYER and Option2 displays BYBLOCK. MRU items display the string generated by AcCmColor::colorNameForDisplay().The cargo associated with each item is an index to a table of AcCmColor objects that this class maintains, with AcCmColor representations of BYBLOCK and BYLAYER already in the table by default. The m_cargoOther1 data member is enabled and triggers the AutoCAD... more
CAdToolTipCtrl This class handles tool tip control displays.For internal use only.
CAdUiBalloonTip For internal use only.
CAdUiBaseDialogCAdUiBaseDialog inherits CDialog and provides basic support for tip windows (ToolTips and TextTips) and AdUi message handling. It also provides support for dialog help (F1 HELP) and context help (what’s this HELP).
CAdUiBitmapButtonCAdUiBitmapButton
CAdUiBitmapStatic This class specializes CAdUiBitmapButton to provide buttons that enable Static Display by default.
CAdUiCheckListBox Represents a CheckListBox supporting high DPI display and customizations.
CAdUiComboBox Represents a ComboBox supporting high DPI display and customizations.
CAdUiCoupledGroupCtrl This class derives from CWnd. It provides functionality to host two controls separated by the splitter bar and takes care of resizing the hosted controls when they are resized using the splitter bar.
CAdUiDialogCAdUiDialog derives from CAdUiBaseDialog. The class provides a straightforward, general-purpose set of member functions that allow for sizable modal dialogs and persistent data storage by dialog. This dialog class provides functionality in three essential areas: resizing, coordinate persistency, and data persistency. CAdUiTabMainDialog and CAdUiTabChildDialog both derive from CAdUiDialog.See "Built-In MFC User Interface Support" in the ObjectARX Developer's Guide for an explanation of the distinction between CAdUi and CAcUi classes.
CAdUiDialogBar This class is for the internal use of AutoCAD only and may be removed at any time.This class is essentially a straight port of CAdUiBaseDialog, except for the constructor.
CAdUiDockControlBarCAdUiDockControlBar class
CAdUiDockFrame This class is for the internal use of AutoCAD only and may be removed at any time.
CAdUiDrawTipTextCAdUiDrawTipText is used internally by the AdUi messaging system to inform a control that a TextTip needs re-painting. The control has the option of changing attributes of the tip window's device context, drawing the text, etc.
CAdUiDropSite This class specializes CAdUiBitmapStatic to provide buttons that enable Static Display by default.
CAdUiDropTarget For internal use only.
CAdUiEdit This class specializes CEdit to provide an edit control that supports AdUi Messaging. The class may be used anywhere a CEdit may be used. Since it provides the additional container-side support for AdUi registered messages, CAdUiBaseDialog (or a derived class) is recommended for use with CAdUiEdit.
CAdUiFileDialogCAdUiFileDialog specializes CFileDialog much the same way as CAdUiBaseDialog specializes CDialog. The class provides basic support for tip windows (ToolTips and TextTips) and AdUi message handling in a common file dialog.With the exception of the constructor and the following methods, refer to CAdUiBaseDialog for documentation, substituting CAdUiFileDialog and CFileDialog in references to CAdUiBaseDialog and CDialog. The following CAdUiBaseDialog methods are not provided in this class: Create(), DisplayData(), DoDialogHelp(), EnableMultiDocumentActivation(), ExchangeData(), IsMultiDocumentActivationEnabled(), SetAppRootKey(), and ValidateData().
CAdUiGroupCtrl CAdUiGroupCtrl class is ownerdrawin group control class that has a header on the top with a title, bitmap buttons and chevron button. Chevron button when clicked, minimizes or maximizes the control. This control can host a CWnd control in the client region. Bitmap button can be used to display different views in the CWnd in the client region or display a different window.
CAdUiHeaderCtrl This class specializes CHeaderCtrl to provide a control that supports AdUi Messaging. The class may be used anywhere a CHeaderCtrl may be used. Most often, CAdUiHeaderCtrl represents the sub-classed header contained in a list control (CAdUiListCtrl).
CAdUiImageImage class provides dark and light theme support to get dark or light theme image resource.
CAdUiImageResourceImage class provides dark and light theme support to get dark or light theme resource from resource ID string.
CAdUiListBox This class specializes CListBox to provide a control that supports AdUi Messaging. The class may be used anywhere a CListBox may be used. Since it provides the additional container-side support for AdUi registered messages, CAdUiBaseDialog (or a derived class) is recommended for use with CAdUiListBox.CAdUiListBox provides features that allow the class to be used to sub-class a listbox included in a combobox (such as a ComboLBox). When used in concert with a CAdUiComboBox the listbox is able to track the combobox and, in the case of an owner-draw control, either delegate drawing to the combobox or provide... more
CAdUiListCtrl This class specializes CListCtrl to provide a control that supports AdUi Messaging. The class may be used anywhere a CListCtrl may be used. Since it provides the additional container-side support for AdUi registered messages, CAdUiBaseDialog (or a derived class) is attractive for use with CAdUiListCtrl.
CAdUiODButtonThemeModReactor For internal use.
CAdUiOwnerDrawButtonDescription to come
CAdUiPalette The CAdUiPalette class represents a palette window.A palette window exists in a hierarchy consisting of a parent palette set that contains one or more palette windows.The CAdUiPalette class supports the following palette style constant:
CAdUiPaletteSetclass CAdUiPaletteSet
CAdUiPathname This class is a general purpose class used to deal with pathnames, both standard DOS style (long) pathnames and UNC pathnames. The class does not deal with URLs. The class has methods for parsing a pathname and setting up the data in the object. It also has methods for extracting components of the path and for modifying the path.
CAdUiRegistryAccess This class is for the internal use of AutoCAD only and may be removed at any time.Provides registry access.
CAdUiRegistryDeleteAccess This class is for the internal use of AutoCAD only and may be removed at any time.Adds deletion capabilities to the registry access object. This class is a separate derived class rather than part of the CAdUiRegistryWriteAccess class because of the potential harm that could be caused by its accidental use.
CAdUiRegistryWriteAccess This class is for the internal use of AutoCAD only and may be removed at any time.Adds write capabilities to the registry access object.
CAdUiRichEditCtrl CAdUiRichEditCtrl is a new class specializes CRichEditCtrl to provide an edit control that supports theme and AdUi Messaging. This class is designed primarily for rich text output instead of input/editing.
CAdUiSearchBoxThis class creates a search control, which allows the user to create a quick temporary filter. When the user inputs a value, the search icon changes to the clear icon. If the user clicks the clear icon, the search value is cleared and search icon will be shown again.
CAdUiTab This class encapsulates the MFC CTabCtrl and adds functionality to it. One of these objects is found in the main dialog object.
CAdUiTabChildDialogCAdUiTabChildDialog inherits CAdUiDialog and represents a tab in a tabbed dialog. CAdUiTabMainDialog and CAdUiTabChildDialog are used in place of CPropertySheet and CPropertyPage to construct tabbed dialogs. Each tab in a tabbed dialog is a CAdUiTabChildDialog.
CAdUiTabExtensionManagerCAdUiTabExtensionManager is a class that manages adding and removing tabs from a tabbed dialog that is tab extensible. An instance of this class is found in the CAdUiTabMainDialog.
CAdUiTabMainDialogCAdUiTabMainDialog inherits CAdUiDialog and represents the main container dialog in a tabbed dialog. CAdUiTabMainDialog and CAdUiTabChildDialog are used in place of CPropertySheet and CPropertyPage to construct tabbed dialogs.
CAdUiTextTip This class provides the functionality for AdUi pop-up tip windows, specifically TextTips and DrawTips.AdUi provides three types of tip windows - ToolTips, TextTips and DrawTips. ToolTips represent stock Windows Tool-Tips, as provided by the Common Controls DLL installed on the user's system. TextTips are text-based tip windows that pop-up over a control, usually to reveal data that the user would otherwise have to scroll into view. DrawTips are an extension of TextTips; the control underneath the tip is usually responsible for painting the contents of the tip (analogous to an owner-draw tip).Most applications rarely involve this class directly;... more
CAdUiTheme CAdUiTheme is a newly exported class although the class exists long time. CAdUiTheme class is a collection of ARGB Color, font, and other data for various UI elements of an application (e.g. AutoCAD). Using various methods on this class, a client can query for various types of UI data for the current theme or change them.
CAdUiThemedStatic AdUiThemedStatic is a new class that provides theme support for CStatic control. The theme settings include background and contents colors.
CAdUiThemeManager The theme manager manages all the UI themes used by the application.
CAdUiThemeMgrReactor For internal use only.
CAdUiThemeModifiedReactorCAdUiThemeModifiedReactor is a reactor class which receives theme-modified notifications from CAdUiTheme
CAdUiTipWindow This class provides the underlying functionality for AdUi pop-up tip windows, including TextTips and DrawTips.AdUi provides three types of tip windows: ToolTips, TextTips, and DrawTips. ToolTips represent stock Windows Tool-Tips, as provided by the Common Controls DLL installed on the user's system. TextTips are text-based tip windows that pop-up over a control, usually to reveal data that the user would otherwise have to scroll into view. DrawTips are an extension of TextTips; the control underneath the tip is usually responsible for painting the contents of the tip (analogous to an owner-draw tip).Most applications rarely involve this class directly;... more
CAdUiToolBarCAdUiToolBar class is a toolbar control that supports automatic scaling when button images are added.
CAdUiToolBarCtrlCAdUiToolBarCtrl class is a toolbar control that supports automatic scaling when button images are added.
CAdUiToolButton This class specializes CAdUiBitmapButton to provide a button that enables Tool Display by default.
CAdUiTrackButton Description to come.
CNavData This class is used for returning data from a file navigation dialog. The data is typically returned in an array of CNavData objects of type CNavDataArray.
CNavDataArray This class is used to return an array of CNavData objects to a file navigation dialog. The array is supplied on construction of the dialog.
CNavDialog This class represents the generic form of the file navigation dialog. It can be used directly or subclassed to add behavior or customize default behavior.
CNavDropSource This class supports drag and drop functionality from the subclassed list control that contains the folder items. It is used in conjunction with CNavListCtrl.
CNavFilter This class is used to initialize the files of type combo box in the file navigation dialog. One CNavFilter object corresponds to one entry in the files of type combo box. The data is typically returned in an array of CNavFilter objects.
CNavFilterArray This class is used to return an array of CNavFilter objects to a file navigation dialog. The array is supplied on construction of the dialog.
CNavListCtrl This is a subclass for the list control that contains folder items. The subclass supports drag and drop from the list control. Used in conjunction with CNavDropSource.
IWebServicesLoader This class represents the web services loader module.

Templates

Template Description
CNavArray This is the common base template class for CNavDataArray and CNavFilterArray. It performs common array utilities such as inserting and removing array items and bounds checking.

Topics

Topic Description
CAcUiListBox This class is the same as CAdUiListBox based on a typedef as follows:
CAcUiListCtrl This class is the same as CAdUiListCtrl based on a typedef as follows:

Types

Type Description
CAcUiHeaderCtrl This class is the same as CAdUiHeaderCtrl based on the following typedef:

Types

Was this information helpful?