Share via


CBaseWindow Class (Windows Embedded CE 6.0)

1/6/2010

Ee493929.43bfa718-9e8e-429a-bde5-93645b4528a2(en-US,WinEmbedded.60).gif

This class creates a window and a worker thread.

The worker thread pulls messages from the window's input queue and dispatches them as appropriate.

The window and its thread are created by the CBaseWindow::PrepareWindow member function and destroyed by the CBaseWindow::DoneWithWindow member function.

The window should also be initialized by the CBaseWindow::InitialiseWindow member function and uninitialized by the CBaseWindow::UninitialiseWindow member function.

After preparing and initializing a window, size it by using the CBaseWindow::ActivateWindow member function; hide the window using the CBaseWindow::InactivateWindow member function.

Protected Data Members

Member Description

m_bActivated

Flag to indicate window activation status.

m_bBackground

Not supported in Windows Embedded CE.

m_bDoGetDC

Not supported in Windows Embedded CE.

m_bNoRealize

Not supported in Windows Embedded CE.

m_bRealizing

Not supported in Windows Embedded CE.

m_ClassStyles

Class styles for the window.

m_hdc

Not supported in Windows Embedded CE.

m_Height

Not supported in Windows Embedded CE.

m_hInstance

Global module instance handle.

m_hPalette

Not supported in Windows Embedded CE.

m_hThread

Worker thread for the window.

m_hwnd

Handle for this object's window.

m_MemoryDC

Not supported in Windows Embedded CE.

m_pClassName

Static string holding the class name.

m_RealizePalette

Not supported in Windows Embedded CE.

m_ShowStageMessage

Not supported in Windows Embedded CE.

m_ShowStageTop

Not supported in Windows Embedded CE.

m_SyncWorker

CAMEvent data member used to provide interthread synchronization.

m_SyncWorkerCreate

CAMMsgEvent data member used to signal the constructor for the window class when to create the window.

m_ThreadSignal

Data member used by the thread to signal errors.

m_Width

Not supported in Windows Embedded CE.

m_WindowLock

Data member used to serialize window object access.

m_WindowStyles

Data member used to serialize the initial window styles.

m_WindowStylesEx

Data member used to serialize the initial extended window styles.

Member Functions

Member function Description

CBaseWindow

Constructs a CBaseWindow object.

DoSetWindowForeground

Not supported in Windows Embedded CE.

DoShowWindow

Not supported in Windows Embedded CE.

GetMemoryHDC

Not supported in Windows Embedded CE.

GetWindowHDC

Not supported in Windows Embedded CE.

GetWindowHeight

Not supported in Windows Embedded CE.

GetWindowHWND

Retrieves the window handle for the window.

GetWindowWidth

Not supported in Windows Embedded CE.

PaintWindow

Not supported in Windows Embedded CE.

PerformanceAlignWindow

Not supported in Windows Embedded CE.

Overrideable Member Functions

Member function Description

ActivateWindow

Sizes the window according to the requirements of the derived class.

DoneWithWindow

Closes, deletes, and frees the window resources.

DoRealisePalette

Not supported in Windows Embedded CE.

PossiblyEatMessage

Forwards keyboard and mouse messages to a specified window.

GetClassWindowStyles

Retrieves class and window information.

GetDefaultRect

Not supported in Windows Embedded CE.

InactivateWindow

Hides the window.

InitialiseWindow

Creates the default device contexts.

OnClose

Handles the WM_CLOSE message for the base class.

OnPaletteChange

Not supported in Windows Embedded CE.

OnSize

Not supported in Windows Embedded CE.

OnReceiveMessage

Indicates a base class implementation of a window procedure.

PrepareWindow

Initializes the window along with a worker thread.

SetPalettee

Not supported in Windows Embedded CE.

UninitialiseWindow

Destroys the device contexts created for the window.

Requirements

Windows Embedded CE Windows CE 2.12 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

See Also

Reference

DirectShow Classes