CBaseControlWindow Class
A version of this page is also available for
4/8/2010
NOT SUPPORTED IN DXPAK 1.0
This class implements the IVideoWindow interface and controls external access to its associated filter.
You must synchronize the CBaseControlWindow object with the filter by passing it a pointer to a critical section synchronization object. For more information about critical section synchronization objects, see the Windows SDK.
The CBaseControlWindow class provides a number of methods that return property settings without dealing with this critical section. For example, calling CBaseControlWindow::get_AutoShow to retrieve the value of the m_bAutoShow data member locks the critical section.
The filter might already have a locked internal critical section, however, which could violate the filter's lock hierarchy. Instead, calling the CBaseControlWindow::IsAutoShowEnabled member function returns the required value without affecting the critical section.
All CBaseControlWindow implemented IVideoWindow methods require that the filter be connected correctly with its upstream filter. For this reason, class objects require a synchronization pin, which you set by calling the CBaseControlWindow::SetControlWindowPin method.
Whenever you call an IVideoWindow method, the CBaseControlWindow object checks that the pin is still connected.
Protected Data Members
Member | Description |
---|---|
m_bAutoShow |
Result when the state changes. |
m_bCursorHidden |
Determination of whether the cursor is displayed or hidden. |
m_BorderColour |
Color of the current window border. |
m_hwndDrain |
Window handle to which messages received are posted. |
m_hwndOwner |
Owning window. |
m_pFilter |
Pointer to the owning media filter. |
m_pInterfaceLock |
Externally defined critical section. |
m_pPin |
Control of the media types for connection. |
Member Functions
Member function | Description |
---|---|
Constructs a CBaseControlWindow object. |
|
Retrieves either the typical or extended window styles. |
|
Sets the typical or extended window styles. |
|
Retrieves the current border color. This is a helper member function. |
|
Retrieves the owning window. This is a helper member function. |
|
Retrieves information about whether the video window appears when the rendering filter pauses or runs. |
|
Retrieves the current state of the m_bCursorHidden data member without locking the critical section. This is a helper member function. |
|
Distributes messages to the parent window. |
|
Notifies the object of the pin to which it applies. |
Implemented IVideoWindow Methods
Method | Description |
---|---|
Retrieves the current AutoShow flag setting. |
|
Retrieves the realized palette in the background flag. |
|
Retrieves the current border color. |
|
Retrieves the current window caption. |
|
Retrieves the current full-screen mode. |
|
Retrieves the current window height. |
|
Retrieves the current left window coordinate. |
|
Retrieves the maximum size of the ideal image. |
|
Retrieves the current message drain. |
|
Retrieves the minimum size of the ideal image. |
|
Retrieves the Win32 parent window handle. |
|
Retrieves the position to which the window will be restored when maximized or minimized. |
|
Retrieves the y-coordinate for the top of the window. |
|
Retrieves the current visibility setting of the window. |
|
Retrieves the width of the window. |
|
Retrieves the current window coordinates. |
|
Retrieves the current state of the window. |
|
Retrieves the standard window styles. |
|
Retrieves the extended window styles. |
|
Hides or displays the cursor. |
|
Retrieves the current state of the m_bCursorHidden data member. |
|
Passes on messages that are sent to owning windows. |
|
Sets the AutoShow property. |
|
Sets a flag to realize the palette in the background. |
|
Sets the current border color. |
|
Sets the current window caption. |
|
Sets the full-screen mode. |
|
Sets the current window height. |
|
Sets the left coordinate for the window. |
|
Sets the message drain window. |
|
Sets the Win32 parent window handle. |
|
Sets the position for the top of the window. |
|
Hides or shows the window. |
|
Sets the width of the window. |
|
Sets the state of the window. |
|
Sets the standard window styles. |
|
Sets the extended window styles. |
|
Sets the window in the foreground. |
|
Sets the window position. |
Requirements
Windows Embedded CE | Windows CE 3.0 and later |
Windows Mobile | Windows Mobile Version 5.0 and later |
Note | Microsoft DirectShow applications and DirectShow filters have different include file and Library requirements For more information, see Setting Up the Build Environment |