All Frameworks Class Hierarchy This Framework Previous Next Indexes
System.IUnknown | +---System.IDispatch | +---System.CATBaseUnknown | +---System.CATEventSubscriber | +---System.CATCommand | +---CATAfrCommandHeaderRep
Usage: you can derive this class.
public class CATAfrCommandHeaderRep
Base class to create a customized representation for a command header.
Role:This class is the base class to create a customized representation
for a CATCommandHeader class. This customized command header must derive from the
CATAfrDialogCommandHeader class, and must implement the
CATIAfrCommandHeaderRep interface. This interface contains three methods to overload the default representation of the command header into a toolbar,
the menubar or a contextual menu. In most cases, only one method creates an instance
of a class deriving from CATAfrCommandHeaderRep, and the two others
create nothing.
The Build method is automatically called just after the instantiation of the class deriving from CATAfrCommandHeaderRep. This method generally creates dialog object, whose the dialog parent is the first argument of the constructor, and that you retrieve with the GetDialogParent method.
It is strongly recommended to read User Interfaces articles about command header into the CAA Encyclopedia before to creating such classes. You will learn how to manage the multi-representation, and more generally how to "refresh" all the instances of the representations.
public CATAfrCommandHeaderRep( | const CATDialog* | iParent, |
CATString& | iCommandName) |
public virtual ~CATAfrCommandHeaderRep( | ) |
public virtual HRESULT Build( | )= 0 |
public HRESULT GetDialogParent( | const CATDialog** | ioParent) |
Copyright © 2003, Dassault Systèmes. All rights reserved.