Professional User Interface Suite, Copyright FOSS Software Inc. Help Published with Permission.

Scripting facilities in Prof-UIS are provided by ProfAuto, a standalone COM library which should be registered with the RegSrv32 utility before it is used. ProfAuto implements a set of Automation classes for customizing graphical user interface elements at runtime programmatically:

Automation class
COM interface
Description
CExtAutoWindow
IExtAutoWindow
Allows you to manage:
- command collection
- the menu bar (a set of menu lines in case of MDI applications)
- toolbar collection
- command categories
- styles and settings
CExtAutoCommandsCollection
IExtAutoCommandsCollection
Allows you to add a new command or remove an existing one, to check whether the command exists, and to get the command object by its name or numeric identifier.
CExtAutoCommand
IExtAutoCommand
Enables you to manage a particular command object, which may be assigned to one or more toolbar buttons and/or menu items.
CExtAutoToolbarsCollection
IExtAutoToolbarsCollection
Allows you to access the menu bar and toolbars in the frame window as well as to add and remove user-defined toolbars.
CExtAutoToolbar
IExtAutoToolbars
Gives access to the toolbar's/menu bar's properties. This interface also allows you to get the collection of original buttons and collection of active buttons associated with the toolbar/menu.
CExtAutoToolButtonsCollection
IExtAutoToolButtonsCollection
Enables you to manage a button collection, which is associated with toolbar, menu bar, command category, or popup menu.
CExtAutoToolButton
IExtAutoToolButton IExtAutoToolButton
Allows you to get and set properties of a particular button object. The button itself may contain a child button collection.
CExtAutoCategories
IExtAutoCategories IExtAutoCategories
Enables you to manage command categories displayed on the Customize form.
CExtAutoStatusBar
IExtAutoStatisBar
Provides you with access to the status bar properties and the collection of its status pane objects.
CExtAutoStatusBarItemsCollection
IExtAutoStatusBarItemsCollection
Allows you to add/remove panes to/from the status bar.
CExtAutoStatusBarItem
IExtAutoStatusBarItem IExtAutoStatusBarItem
Enables you to manage a particular status pane.

The instance of CExtAutoWindow is a top-level object, which gives you access to all other objects in ProfAuto. In your MFC application, you can get a pointer to the IExtAutoWindow interface by calling the AutomateFrame() global function, which takes a pointer to the CFrameWnd-based window as an input parameter.