soui 5.0.0.1
Soui5 Doc
 
Loading...
Searching...
No Matches
SRealWnd Class Reference

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.
 
IXmlNodeGetRealParam () 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;amp;strAttribName, const SNS::SStringW &amp;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< IRealWndHandlerm_pRealWndHandler
 

Detailed Description

Real Window Control.

A control that binds a real Windows window.

Definition at line 22 of file SRealWnd.h.

Constructor & Destructor Documentation

◆ SRealWnd()

SRealWnd::SRealWnd ( )

Constructor.

Definition at line 48 of file SRealWnd.cpp.

◆ ~SRealWnd()

SRealWnd::~SRealWnd ( )
virtual

Destructor.

Definition at line 65 of file SRealWnd.cpp.

Member Function Documentation

◆ GetData()

LPVOID SRealWnd::GetData ( )
inline

Get the additional data for the real window.

Returns
Pointer to the additional data

Definition at line 102 of file SRealWnd.h.

◆ GetRealClassName()

const IStringT * SRealWnd::GetRealClassName ( )
inline

Get the class name of the real window.

Returns
Pointer to the class name

Definition at line 41 of file SRealWnd.h.

◆ GetRealHwnd()

HWND SRealWnd::GetRealHwnd ( BOOL bAutoCreate = TRUE)

Get the handle of the real window.

Parameters
bAutoCreateWhether to automatically create the window if it doesn't exist
Returns
Handle to the real window

Definition at line 114 of file SRealWnd.cpp.

◆ GetRealParam()

IXmlNode * SRealWnd::GetRealParam ( )
inline

Get the parameters of the real window.

Returns
Pointer to the XML node containing parameters

Definition at line 77 of file SRealWnd.h.

◆ GetRealStyle()

DWORD SRealWnd::GetRealStyle ( )
inline

Get the style of the real window.

Returns
Window style

Definition at line 59 of file SRealWnd.h.

◆ GetRealStyleEx()

DWORD SRealWnd::GetRealStyleEx ( )
inline

Get the extended style of the real window.

Returns
Extended window style

Definition at line 68 of file SRealWnd.h.

◆ GetRealWindowName()

const IStringT * SRealWnd::GetRealWindowName ( )
inline

Get the name of the real window.

Returns
Pointer to the window name

Definition at line 50 of file SRealWnd.h.

◆ InitFromXml()

BOOL SRealWnd::InitFromXml ( IXmlNode * pNode)
protectedvirtual

Initialize the control from an XML node.

Parameters
pNodeXML node containing initialization parameters
Returns
TRUE if initialization is successful, FALSE otherwise

Definition at line 101 of file SRealWnd.cpp.

◆ InitRealWnd()

BOOL SRealWnd::InitRealWnd ( )
protected

Initialize the real window.

Returns
TRUE if initialization is successful, FALSE otherwise

Definition at line 127 of file SRealWnd.cpp.

◆ NeedRedrawWhenStateChange()

BOOL SRealWnd::NeedRedrawWhenStateChange ( )
protectedvirtual

Determine if the control needs to be redrawn when its state changes.

Returns
TRUE if redraw is needed, FALSE otherwise

Reimplemented from SWindow.

Definition at line 69 of file SRealWnd.cpp.

◆ OnDestroy()

void SRealWnd::OnDestroy ( )
protected

Handle destroy event.

Definition at line 92 of file SRealWnd.cpp.

◆ OnPaint()

void SRealWnd::OnPaint ( IRenderTarget * pRT)
inlineprotected

Paint the control.

Parameters
pRTRendering target handle

Definition at line 152 of file SRealWnd.h.

◆ OnRelayout()

BOOL SRealWnd::OnRelayout ( const CRect & rcWnd)
protectedvirtual

Handle layout changes.

Parameters
rcWndNew window rectangle
Returns
TRUE if layout is successful, FALSE otherwise

Reimplemented from SWindow.

Definition at line 143 of file SRealWnd.cpp.

◆ OnShowWindow()

void SRealWnd::OnShowWindow ( BOOL bShow,
UINT nStatus )
protected

Handle show window event.

Parameters
bShowWhether to show the window
nStatusStatus code

Definition at line 86 of file SRealWnd.cpp.

◆ SetAttribute()

virtual HRESULT SRealWnd::SetAttribute ( const SNS::SStringW &amp;amp;amp;amp; strAttribName,
const SNS::SStringW &amp;amp;amp;amp; strValue,
BOOL bLoading = FALSE )
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.

◆ SetData()

void SRealWnd::SetData ( LPVOID lpData)
inline

Set the additional data for the real window.

Parameters
lpDataPointer to the additional data

Definition at line 93 of file SRealWnd.h.

◆ SetRealWndPos()

void SRealWnd::SetRealWndPos ( HWND hRealWnd,
const CRect * prc )
protected

Set the position of the real window.

Parameters
hRealWndHandle to the real window
prcRectangle for the window position

Definition at line 156 of file SRealWnd.cpp.

◆ ShowRealWindow()

void SRealWnd::ShowRealWindow ( )
protected

Show the real window.

Definition at line 74 of file SRealWnd.cpp.

Member Data Documentation

◆ m_bInit

BOOL SRealWnd::m_bInit
protected

Initialization flag

Definition at line 188 of file SRealWnd.h.

◆ m_dwExStyle

DWORD SRealWnd::m_dwExStyle
protected

Extended style of the real window

Definition at line 185 of file SRealWnd.h.

◆ m_dwStyle

DWORD SRealWnd::m_dwStyle
protected

Style of the real window

Definition at line 184 of file SRealWnd.h.

◆ m_hRealWnd

HWND SRealWnd::m_hRealWnd
protected

Handle to the real window

Definition at line 190 of file SRealWnd.h.

◆ m_lpData

LPVOID SRealWnd::m_lpData
protected

Pointer to additional data

Definition at line 191 of file SRealWnd.h.

◆ m_pRealWndHandler

SAutoRefPtr<IRealWndHandler> SRealWnd::m_pRealWndHandler
protected

Pointer to the real window handler

Definition at line 193 of file SRealWnd.h.

◆ m_strClassName

SStringT SRealWnd::m_strClassName
protected

Class name of the real window

Definition at line 182 of file SRealWnd.h.

◆ m_strWindowName

SStringT SRealWnd::m_strWindowName
protected

Name of the real window

Definition at line 183 of file SRealWnd.h.

◆ m_xmlParams

SXmlDoc SRealWnd::m_xmlParams
protected

XML document containing parameters

Definition at line 186 of file SRealWnd.h.


The documentation for this class was generated from the following files: