|
| enum | { kDefaultIID = IID_IOBSERVER } |
| |
| bool16 | fDetachSubjectsOnDelete |
| |
| PMIID | fAttachIID |
| |
| const UIDRef | fThisRef |
| |
| bool16 | fEnabled |
| |
This implementation subclasses CSelectableDialogObserver, not CObserver, to help provide the dialog switching mechanism. Note that each of the methods in this class first call the method in the parent class, CSelectableDialogObserver. (e.g. BscSlDlgDialogObserver::Update calls CSelectableDialogObserver::Update)
In addition, this implementation allows dynamic processing of the dialog's info button.
| BscSlDlgDialogObserver::BscSlDlgDialogObserver | ( | IPMUnknown * | boss | ) | |
| inline |
Constructor.
- Parameters
| boss | IN interface ptr from boss object on which interface is aggregated. |
| virtual BscSlDlgDialogObserver::~BscSlDlgDialogObserver | ( | | ) | |
| inlinevirtual |
| Binds the C implementation class onto its ImplementationID making the C code callable by the application *void BscSlDlgDialogObserver::AutoAttach | ( | void | | ) | |
| virtual |
Called by the application to allow the observer to attach to the subjects to be observed. In this case: the selectable dialog listbox and the dialog's info button widget. If you want to observe other widgets on the dialog, add them here.
Reimplemented from CSelectableDialogObserver.
| void BscSlDlgDialogObserver::AutoDetach | ( | void | | ) | |
| virtual |
Called by the application to allow the observer to detach from the subjects being observed.
Reimplemented from CSelectableDialogObserver.
| int32 BscSlDlgDialogObserver::GetSelectedPanelIndex | ( | | ) | |
| protectedvirtual |
| void BscSlDlgDialogObserver::Update | ( | const ClassID & | theChange, | | | ISubject * | theSubject, | | | const PMIID & | protocol, | | | void * | changedBy | | ) | | |
| virtual |
Called by the host when the observed object changes. In this case: when either the dialog's info button or an item on the selectable dialog listbox is clicked.
- Parameters
| theChange | specifies the class ID of the change to the subject. Frequently this is a command ID. |
| theSubject | points to the ISubject interface for the subject that has changed. |
| protocol | specifies the ID of the changed interface on the subject boss. |
| changedBy | points to additional data about the change. Often this pointer indicates the class ID of the command that has caused the change. |
Reimplemented from CSelectableDialogObserver.