Class defining attributes for the host window. More...
#include <SHostWnd.h>
Public Member Functions | |
| SHostWndAttr (void) | |
| Constructor for SHostWndAttr. | |
| ~SHostWndAttr () | |
| Destructor for SHostWndAttr. | |
| void | Init () |
| Initializes the window attributes. | |
| virtual LPCWSTR | GetTrCtx () const |
| Gets the translation context. | |
| CRect | GetMaxInset (int nScale) const |
| Gets the maximum inset size of the window. | |
| CRect | GetMargin (int nScale) const |
| Gets the margin of the window. | |
| CSize | GetMinSize (int nScale) const |
| Gets the minimum size of the window. | |
| void | SetTranslucent (bool bTranslucent) |
| Sets whether the window is translucent. | |
| void | SetTrCtx (const SStringW &strTrCtx) |
| Sets the translation context. | |
| void | SetSendWheel2Hover (bool value) |
| Sets whether wheel messages are sent to the hover window. | |
| virtual HRESULT | SetAttribute (const SNS::SStringW &amp;amp;amp;strAttribName, const SNS::SStringW &amp;amp;amp;strValue, BOOL bLoading=FALSE) |
| Defines the attribute list for serialization and deserialization. | |
Public Member Functions inherited from TObjRefImpl< SObject > | |
| TObjRefImpl () | |
| Constructor that initializes the reference count to 1. | |
| virtual | ~TObjRefImpl () |
| Virtual destructor. | |
| long | AddRef () override |
| Increments the reference count. | |
| long | Release () override |
| Decrements the reference count and deletes the object if the count reaches zero. | |
| void | OnFinalRelease () override |
| Deletes the object. | |
Protected Attributes | |
| SLayoutSize | m_rcMargin [4] |
| SLayoutSize | m_szMin [2] |
| SLayoutSize | m_rcMaxInset [4] |
| WndType | m_wndType |
| BOOL | m_bResizable |
| BOOL | m_bAppWnd |
| BOOL | m_bToolWnd |
| BOOL | m_bTranslucent |
| BOOL | m_bAutoShape |
| BOOL | m_bAllowSpy |
| BOOL | m_bSendWheel2Hover |
| BOOL | m_bHasMsgLoop |
| DWORD | m_dwStyle |
| DWORD | m_dwExStyle |
| SStringW | m_strTrCtx |
| SStringW | m_strTitle |
| HICON | m_hAppIconSmall |
| HICON | m_hAppIconBig |
Protected Attributes inherited from TObjRefImpl< SObject > | |
| LONG | m_cRef |
| Reference count. | |
Friends | |
| class | SHostWnd |
| Friend class declaration allowing access to private members. | |
| class | SRootWindow |
| class | SNcPainter |
| class | SHostPresenter |
Class defining attributes for the host window.
This class manages and configures the appearance and behavior of the host window.
Definition at line 42 of file SHostWnd.h.
| SHostWndAttr::SHostWndAttr | ( | void | ) |
Constructor for SHostWndAttr.
Definition at line 56 of file shostwnd.cpp.
| SHostWndAttr::~SHostWndAttr | ( | ) |
Destructor for SHostWndAttr.
Definition at line 63 of file shostwnd.cpp.
| CRect SHostWndAttr::GetMargin | ( | int | nScale | ) | const |
Gets the margin of the window.
| nScale | Scale factor. |
Definition at line 107 of file shostwnd.cpp.
| CRect SHostWndAttr::GetMaxInset | ( | int | nScale | ) | const |
Gets the maximum inset size of the window.
| nScale | Scale factor. |
Definition at line 97 of file shostwnd.cpp.
| CSize SHostWndAttr::GetMinSize | ( | int | nScale | ) | const |
Gets the minimum size of the window.
| nScale | Scale factor. |
Definition at line 117 of file shostwnd.cpp.
|
virtual |
Gets the translation context.
Definition at line 92 of file shostwnd.cpp.
| void SHostWndAttr::Init | ( | ) |
Initializes the window attributes.
Definition at line 71 of file shostwnd.cpp.
|
inlinevirtual |
Defines the attribute list for serialization and deserialization.
Definition at line 134 of file SHostWnd.h.
| void SHostWndAttr::SetSendWheel2Hover | ( | bool | value | ) |
Sets whether wheel messages are sent to the hover window.
| value | TRUE to send wheel messages to the hover window, FALSE otherwise. |
Definition at line 135 of file shostwnd.cpp.
| void SHostWndAttr::SetTranslucent | ( | bool | bTranslucent | ) |
Sets whether the window is translucent.
| bTranslucent | TRUE if the window is translucent, FALSE otherwise. |
Definition at line 125 of file shostwnd.cpp.
| void SHostWndAttr::SetTrCtx | ( | const SStringW & | strTrCtx | ) |
Sets the translation context.
| strTrCtx | Translation context string. |
Definition at line 130 of file shostwnd.cpp.
|
friend |
Definition at line 61 of file SHostWnd.h.
|
friend |
Friend class declaration allowing access to private members.
Definition at line 58 of file SHostWnd.h.
|
friend |
Definition at line 60 of file SHostWnd.h.
|
friend |
Definition at line 59 of file SHostWnd.h.
|
protected |
Flag indicating if spy is allowed
Definition at line 170 of file SHostWnd.h.
|
protected |
Flag indicating if the window is an APP window (shown in taskbar)
Definition at line 166 of file SHostWnd.h.
|
protected |
Flag indicating if the window should auto-build shape for translucency (valid for Linux)
Definition at line 169 of file SHostWnd.h.
|
protected |
Flag indicating if the window has a message loop, affecting tooltip RelayEvent timing
Definition at line 172 of file SHostWnd.h.
|
protected |
Flag indicating if the window is resizable
Definition at line 165 of file SHostWnd.h.
|
protected |
Flag indicating if wheel messages should be sent to the hover window
Definition at line 171 of file SHostWnd.h.
|
protected |
Flag indicating if the window has WS_ES_TOOLWINDOW style
Definition at line 167 of file SHostWnd.h.
|
protected |
Flag indicating if the window is translucent
Definition at line 168 of file SHostWnd.h.
|
protected |
Definition at line 174 of file SHostWnd.h.
|
protected |
Definition at line 173 of file SHostWnd.h.
|
protected |
Definition at line 179 of file SHostWnd.h.
|
protected |
Definition at line 178 of file SHostWnd.h.
|
protected |
Window stretch edge detection size
Definition at line 160 of file SHostWnd.h.
|
protected |
Window maximum inset size when maximized. WS_OVERLAPPED style windows ignore this attribute
Definition at line 162 of file SHostWnd.h.
|
protected |
Definition at line 177 of file SHostWnd.h.
|
protected |
Translation context used in language translation
Definition at line 176 of file SHostWnd.h.
|
protected |
Window minimum size
Definition at line 161 of file SHostWnd.h.
|
protected |
Main window flag, if set, the window sends WM_QUIT on close
Definition at line 164 of file SHostWnd.h.