IVideoSourceComboBox

The IVideoSourceComboBox Interface from the MV Video Source Combo Box control contains various methods to setup the control.

Methods:

AddSelObjectToFilterGraph Create a filter object from the selected video device and add it to a filter graph.
DeviceCount Available video device count.
Enabled Enable the control.
GetSelectedDeviceObject Creates a filter object from the current selected video device and returns it's IUnknown interface.
SelectedDevice Display name from the current selected device.
SelectedDeviceName Name from the current selected video device.

Typelib: MV VideoSourceComboBox


Method IVideoSourceComboBox::AddSelObjectToFilterGraph

Declaration: Function AddSelObjectToFilterGraph(pFilterGraph As Unknown) As Object

Create a filter object from the selected video device and add it to a filter graph.

Parameter:

pFilterGraph IUnknown interface from the filter graph manager.
Prototype:

HRESULT AddSelObjectToFilterGraph(IUnknow* pFilterGraph, IUnknown** value);

 

Property IVideoSourceComboBox::DeviceCount

Declaration: Property Get Enabled As LONG

Available video device count.

Prototype:

HRESULT get_DeviceCount(int* count);


Property IVideoSourceComboBox::Enabled

Declaration: Property Get/Put Enabled As Boolean

Enable the control.

Prototype:

HRESULT put_Enabled(BOOL);
HRESULT get_Enabled(BOOL*);

 

Method IVideoSourceComboBox::GetSelectedDeviceObject

Declaration: Function GetSelectedDeviceObject As Unknown

Creates a filter object from the current selected video device and returns it's IUnknown interface.

Prototype:

HRESULT GetSelectedDeviceObject(IUnknown* value);


Property IVideoSourceComboBox::SelectedDevice

Declaration: Property Get/Put SelectedDevice As String

  Display name from the current selected device.

Prototype:

HRESULT put_SelectedDevice(BSTR);
HRESULT get_SelectedDevice(BSTR*);


Property IVideoSourceComboBox::SelectedDeviceName

Declaration: Property Get SelectedDeviceName As String

Name from the current selected video device.

Prototype:

HRESULT get_SelectedDeviceName(BSTR*);