# IMFPartSwitcher Struct Reference
[MCFrame]

Inheritance diagram for IMFPartSwitcher:

List of all members.

## Public Member Functions
virtual IMFPart *MCCOMAPI | GetThisPart ()=0
virtual int32 MCCOMAPI | GetPartsCount () const =0
virtual void MCCOMAPI | SetParts (const TMCCountedPtrArray< IMFPart > &inParts)=0
virtual void MCCOMAPI | InsertPart (int32 insertPos, IMFPart *inPart)=0
virtual void MCCOMAPI | RemoveParts (int32 index, int32 count)=0
virtual void MCCOMAPI | ShowPart (int32 inPartIndex)=0
virtual IMFPart *MCCOMAPI | GetShownPart ()=0

## Detailed Description

IMFPartSwitcher is a node part that keeps a list of (some) of it child parts and shows only one of them. It is very similar to tabs. When you add parts, they IMFPartSwitcher becomes their owner and will destroy them when they are removed When you add or remove part through this interface, they will be automatically added/removed as child of the IMFPartSwitcher.

Inserted/added parts are set to invisible and disabled

Note that IMFPartSwitcher should also support Get/SetValue() with kInt32ValueType to switch the shown page

## Member Function Documentation

virtual int32 MCCOMAPI IMFPartSwitcher::GetPartsCount | ( |  | ) | const`[pure virtual]`

virtual IMFPart* MCCOMAPI IMFPartSwitcher::GetShownPart | ( |  | ) | `[pure virtual]`

virtual IMFPart* MCCOMAPI IMFPartSwitcher::GetThisPart | ( |  | ) | `[pure virtual]`

virtual void MCCOMAPI IMFPartSwitcher::InsertPart | ( | int32 | insertPos,
|  | IMFPart * | inPart |
| ) |  |  | `[pure virtual]`

virtual void MCCOMAPI IMFPartSwitcher::RemoveParts | ( | int32 | index,
|  | int32 | count |
| ) |  |  | `[pure virtual]`

virtual void MCCOMAPI IMFPartSwitcher::SetParts | ( | const TMCCountedPtrArray< IMFPart > & | inParts | ) | `[pure virtual]`

virtual void MCCOMAPI IMFPartSwitcher::ShowPart | ( | int32 | inPartIndex | ) | `[pure virtual]`

The documentation for this struct was generated from the following file:

- IMFPartSwitcher.h