5#include <interface/SCtrl-i.h>
6#include <proxy/SWindowProxy.h>
22class SOUI_EXP
SRealWnd :
public TWindowProxy<IRealWnd> {
23 DEF_SOBJECT(
SWindow, L
"realwnd")
87 STDMETHOD_(HWND, GetRealHwnd)(THIS_ BOOL bAutoCreate = TRUE) OVERRIDE;
93 STDMETHOD_(
void,
SetData)(THIS_ LPVOID lpData)
112 ATTR_BOOL(L
"init",
m_bInit, FALSE)
160 void ShowRealWindow();
173 void SetRealWndPos(HWND hRealWnd,
const CRect *prc);
176 MSG_WM_PAINT_EX(OnPaint)
177 MSG_WM_DESTROY(OnDestroy)
178 MSG_WM_SHOWWINDOW(OnShowWindow)
Smart pointer class for managing COM-style reference-counted objects.
const IStringT * GetRealClassName() SCONST OVERRIDE
Get the class name of the real window.
void OnDestroy()
Handle destroy event.
SAutoRefPtr< IRealWndHandler > m_pRealWndHandler
DWORD GetRealStyle() SCONST OVERRIDE
Get the style of the real window.
virtual BOOL NeedRedrawWhenStateChange()
Determine if the control needs to be redrawn when its state changes.
void OnPaint(IRenderTarget *pRT)
Paint the control.
DWORD GetRealStyleEx() SCONST OVERRIDE
Get the extended style of the real window.
virtual BOOL WINAPI InitFromXml(IXmlNode *pNode)
Initialize the control from an XML node.
void SetData(LPVOID lpData)
Set the additional data for the real window.
IXmlNode * GetRealParam() OVERRIDE
Get the parameters of the real window.
const IStringT * GetRealWindowName() SCONST OVERRIDE
Get the name of the real window.
LPVOID GetData()
Get the additional data for the real window.
virtual BOOL OnRelayout(const CRect &rcWnd)
Handle layout changes.
void OnShowWindow(BOOL bShow, UINT nStatus)
Handle show window event.
Implementation of IXmlDoc.
Interface for handling real window operations.
Interface for rendering target objects.