Real Window Control. More...
#include <SRealWnd.h>
Public Member Functions | |
SRealWnd () | |
Constructor. | |
virtual | ~SRealWnd () |
Destructor. | |
const IStringT * | GetRealClassName () SCONST OVERRIDE |
Get the class name of the real window. | |
const IStringT * | GetRealWindowName () SCONST OVERRIDE |
Get the name of the real window. | |
DWORD | GetRealStyle () SCONST OVERRIDE |
Get the style of the real window. | |
DWORD | GetRealStyleEx () SCONST OVERRIDE |
Get the extended style of the real window. | |
IXmlNode * | GetRealParam () OVERRIDE |
Get the parameters of the real window. | |
HWND | GetRealHwnd (BOOL bAutoCreate=TRUE) OVERRIDE |
Get the handle of the real window. | |
void | SetData (LPVOID lpData) |
Set the additional data for the real window. | |
LPVOID | GetData () |
Get the additional data for the real window. | |
virtual HRESULT | SetAttribute (const SNS::SStringW &amp;amp;amp;strAttribName, const SNS::SStringW &amp;amp;amp;strValue, BOOL bLoading=FALSE) |
Protected Member Functions | |
virtual BOOL | NeedRedrawWhenStateChange () |
Determine if the control needs to be redrawn when its state changes. | |
virtual BOOL WINAPI | InitFromXml (IXmlNode *pNode) |
Initialize the control from an XML node. | |
virtual BOOL | OnRelayout (const CRect &rcWnd) |
Handle layout changes. | |
void | OnShowWindow (BOOL bShow, UINT nStatus) |
Handle show window event. | |
void | OnDestroy () |
Handle destroy event. | |
void | OnPaint (IRenderTarget *pRT) |
Paint the control. | |
void | ShowRealWindow () |
Show the real window. | |
BOOL | InitRealWnd () |
Initialize the real window. | |
void | SetRealWndPos (HWND hRealWnd, const CRect *prc) |
Set the position of the real window. | |
Protected Attributes | |
SStringT | m_strClassName |
SStringT | m_strWindowName |
DWORD | m_dwStyle |
DWORD | m_dwExStyle |
SXmlDoc | m_xmlParams |
BOOL | m_bInit |
HWND | m_hRealWnd |
LPVOID | m_lpData |
SAutoRefPtr< IRealWndHandler > | m_pRealWndHandler |
Real Window Control.
A control that binds a real Windows window.
Definition at line 22 of file SRealWnd.h.
SRealWnd::SRealWnd | ( | ) |
Constructor.
Definition at line 48 of file SRealWnd.cpp.
|
virtual |
Destructor.
Definition at line 65 of file SRealWnd.cpp.
|
inline |
Get the additional data for the real window.
Definition at line 102 of file SRealWnd.h.
|
inline |
Get the class name of the real window.
Definition at line 41 of file SRealWnd.h.
HWND SRealWnd::GetRealHwnd | ( | BOOL | bAutoCreate = TRUE | ) |
Get the handle of the real window.
bAutoCreate | Whether to automatically create the window if it doesn't exist |
Definition at line 114 of file SRealWnd.cpp.
|
inline |
Get the parameters of the real window.
Definition at line 77 of file SRealWnd.h.
|
inline |
|
inline |
Get the extended style of the real window.
Definition at line 68 of file SRealWnd.h.
|
inline |
Get the name of the real window.
Definition at line 50 of file SRealWnd.h.
|
protectedvirtual |
Initialize the control from an XML node.
pNode | XML node containing initialization parameters |
Definition at line 101 of file SRealWnd.cpp.
|
protected |
Initialize the real window.
Definition at line 127 of file SRealWnd.cpp.
|
protectedvirtual |
Determine if the control needs to be redrawn when its state changes.
Reimplemented from SWindow.
Definition at line 69 of file SRealWnd.cpp.
|
protected |
Handle destroy event.
Definition at line 92 of file SRealWnd.cpp.
|
inlineprotected |
|
protectedvirtual |
Handle layout changes.
rcWnd | New window rectangle |
Reimplemented from SWindow.
Definition at line 143 of file SRealWnd.cpp.
|
protected |
Handle show window event.
bShow | Whether to show the window |
nStatus | Status code |
Definition at line 86 of file SRealWnd.cpp.
|
inlinevirtual |
< Class name of the real window
< Name of the real window
< Style of the real window
< Extended style of the real window
< Initialization flag
Reimplemented from SWindow.
Definition at line 107 of file SRealWnd.h.
|
inline |
Set the additional data for the real window.
lpData | Pointer to the additional data |
Definition at line 93 of file SRealWnd.h.
|
protected |
Set the position of the real window.
hRealWnd | Handle to the real window |
prc | Rectangle for the window position |
Definition at line 156 of file SRealWnd.cpp.
|
protected |
Show the real window.
Definition at line 74 of file SRealWnd.cpp.
|
protected |
Initialization flag
Definition at line 188 of file SRealWnd.h.
|
protected |
Extended style of the real window
Definition at line 185 of file SRealWnd.h.
|
protected |
Style of the real window
Definition at line 184 of file SRealWnd.h.
|
protected |
Handle to the real window
Definition at line 190 of file SRealWnd.h.
|
protected |
Pointer to additional data
Definition at line 191 of file SRealWnd.h.
|
protected |
Pointer to the real window handler
Definition at line 193 of file SRealWnd.h.
|
protected |
Class name of the real window
Definition at line 182 of file SRealWnd.h.
|
protected |
Name of the real window
Definition at line 183 of file SRealWnd.h.
|
protected |
XML document containing parameters
Definition at line 186 of file SRealWnd.h.