Public Member Functions | |
| virtual MCErr MCCOMAPI | QueryInterface (const MCIID &riid, void **ppvObj) |
| virtual uint32 MCCOMAPI | AddRef () |
| virtual MCCOMErr MCCOMAPI | Do () |
| virtual MCCOMErr MCCOMAPI | Undo () |
| virtual MCCOMErr MCCOMAPI | Redo () |
| virtual boolean MCCOMAPI | WillCauseChange () |
| virtual boolean MCCOMAPI | CanUndo () |
| virtual void MCCOMAPI | GetPartToRedraw (IMFPart **outPart, int32 stage) |
| virtual MCCOMErr MCCOMAPI | GetName (TMCString &name) |
| virtual boolean MCCOMAPI | NeedsToPrepareMenus (void) |
Basic Action class. Derive from this for a default implementation of IShAction
| virtual uint32 MCCOMAPI TBasicAction::AddRef | ( | ) | [inline, virtual] |
Increments the reference count of the object
Reimplemented from TBasicUnknown.
| virtual boolean MCCOMAPI TBasicAction::CanUndo | ( | ) | [virtual] |
| virtual MCCOMErr MCCOMAPI TBasicAction::Do | ( | ) | [virtual] |
Function called to actually perform the action.
Implements IShAction.
Return the name to display in the undo/redo list.
| name | The name of the action |
Implements IShAction.
| virtual void MCCOMAPI TBasicAction::GetPartToRedraw | ( | IMFPart ** | outPart, | |
| int32 | stage | |||
| ) | [virtual] |
Gives the action the opportunity to tell the Shell that the returned part should be redrawn after Do/Undo/Redo. Return NULL in outPart if no redraw is needed.
| outPart | Returns a pointer to the part that needs to be redrawn after the action runs. | |
| stage | Allows you to specify what stage to query for part redraw. kShDoAction, kShUndoAction, kShRedoAction |
Implements IShAction.
| virtual boolean MCCOMAPI TBasicAction::NeedsToPrepareMenus | ( | void | ) | [virtual] |
| virtual MCErr MCCOMAPI TBasicAction::QueryInterface | ( | const MCIID & | riid, | |
| void ** | ppvObj | |||
| ) | [virtual] |
Check if the object supports a given interface and returns a pointer to that interface if it does. Note that QueryInterface will increment the reference count of the object by one if the interface is found.
| riid | GUID of the interface | |
| ppvObj | A pointer to the pointer being returned. |
Reimplemented from TBasicUnknown.
| virtual MCCOMErr MCCOMAPI TBasicAction::Redo | ( | ) | [virtual] |
| virtual MCCOMErr MCCOMAPI TBasicAction::Undo | ( | ) | [virtual] |
Called to undo the action.
Implements IShAction.
| virtual boolean MCCOMAPI TBasicAction::WillCauseChange | ( | ) | [virtual] |
Implements IShAction.
1.6.3