次の方法で共有


CBaseWindow Class (Compact 2013)

3/26/2014

CBaseWindow Class

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 Compact.

m_bDoGetDC

Not supported in Windows Embedded Compact.

m_bNoRealize

Not supported in Windows Embedded Compact.

m_bRealizing

Not supported in Windows Embedded Compact.

m_ClassStyles

Class styles for the window.

m_hdc

Not supported in Windows Embedded Compact.

m_Height

Not supported in Windows Embedded Compact.

m_hInstance

Global module instance handle.

m_hPalette

Not supported in Windows Embedded Compact.

m_hThread

Worker thread for the window.

m_hwnd

Handle for this object's window.

m_MemoryDC

Not supported in Windows Embedded Compact.

m_pClassName

Static string holding the class name.

m_RealizePalette

Not supported in Windows Embedded Compact.

m_ShowStageMessage

Not supported in Windows Embedded Compact.

m_ShowStageTop

Not supported in Windows Embedded Compact.

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 Compact.

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 Compact.

DoShowWindow

Not supported in Windows Embedded Compact.

GetMemoryHDC

Not supported in Windows Embedded Compact.

GetWindowHDC

Not supported in Windows Embedded Compact.

GetWindowHeight

Not supported in Windows Embedded Compact.

GetWindowHWND

Retrieves the window handle for the window.

GetWindowWidth

Not supported in Windows Embedded Compact.

PaintWindow

Not supported in Windows Embedded Compact.

PerformanceAlignWindow

Not supported in Windows Embedded Compact.

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 Compact.

PossiblyEatMessage

Forwards keyboard and mouse messages to a specified window.

GetClassWindowStyles

Retrieves class and window information.

GetDefaultRect

Not supported in Windows Embedded Compact.

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 Compact.

OnSize

Not supported in Windows Embedded Compact.

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 Compact.

UninitialiseWindow

Destroys the device contexts created for the window.

Requirements

Header

dshow.h,
Streams.h

Library

ole32.lib,
Ole32auth.lib,
Strmbase.lib,
Strmiids.lib,
uuid.lib

See Also

Reference

DirectShow Classes