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 |
---|---|
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. |
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 |
---|---|
Sizes the window according to the requirements of the derived class. |
|
Closes, deletes, and frees the window resources. |
|
DoRealisePalette |
Not supported in Windows Embedded Compact. |
Forwards keyboard and mouse messages to a specified window. |
|
Retrieves class and window information. |
|
GetDefaultRect |
Not supported in Windows Embedded Compact. |
Hides the window. |
|
Creates the default device contexts. |
|
Handles the WM_CLOSE message for the base class. |
|
OnPaletteChange |
Not supported in Windows Embedded Compact. |
OnSize |
Not supported in Windows Embedded Compact. |
Indicates a base class implementation of a window procedure. |
|
Initializes the window along with a worker thread. |
|
SetPalettee |
Not supported in Windows Embedded Compact. |
Destroys the device contexts created for the window. |
Requirements
Header |
dshow.h, |
Library |
ole32.lib, |