菜单属性类
More...
#include <SMenu.h>
|
| SMenuAttr () |
| 构造函数
|
|
| ~SMenuAttr () |
| 析构函数
|
|
void | SetScale (int scale) |
| 设置缩放比例
|
|
virtual HRESULT | SetAttribute (const SNS::SStringW &amp;amp;amp;strAttribName, const SNS::SStringW &amp;amp;amp;strValue, BOOL bLoading=FALSE) |
|
| 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.
|
|
菜单属性类
Definition at line 20 of file SMenu.h.
◆ SMenuAttr()
◆ ~SMenuAttr()
SMenuAttr::~SMenuAttr |
( |
| ) |
|
◆ GetFontPtr()
获取字体指针
- Returns
- 字体指针
Definition at line 87 of file SMenu.cpp.
◆ GetIconMargin()
int SMenuAttr::GetIconMargin |
( |
| ) |
|
|
protected |
获取图标边缘空间
- Returns
- 图标边缘空间
Definition at line 54 of file SMenu.cpp.
◆ GetIconSize()
CSize SMenuAttr::GetIconSize |
( |
| ) |
|
|
protected |
获取图标尺寸
- Returns
- 图标尺寸
Definition at line 59 of file SMenu.cpp.
◆ GetItemHeight()
int SMenuAttr::GetItemHeight |
( |
| ) |
|
|
protected |
获取菜单项高度
- Returns
- 菜单项高度
Definition at line 64 of file SMenu.cpp.
◆ GetMaxWidth()
int SMenuAttr::GetMaxWidth |
( |
| ) |
|
|
protected |
获取菜单项最大宽度
- Returns
- 菜单项最大宽度
Definition at line 69 of file SMenu.cpp.
◆ GetScale()
int SMenuAttr::GetScale |
( |
| ) |
const |
|
inlineprotected |
获取缩放比例
- Returns
- 缩放比例
Definition at line 94 of file SMenu.h.
◆ GetTextMargin()
int SMenuAttr::GetTextMargin |
( |
| ) |
|
|
protected |
获取文本边缘空间
- Returns
- 文本边缘空间
Definition at line 49 of file SMenu.cpp.
◆ OnInitFinished()
void SMenuAttr::OnInitFinished |
( |
SXmlNode | xmlNode | ) |
|
|
protectedvirtual |
初始化完成后的回调函数
- Parameters
-
Definition at line 76 of file SMenu.cpp.
◆ SetAttribute()
virtual HRESULT SMenuAttr::SetAttribute |
( |
const SNS::SStringW &amp;amp;amp; | strAttribName, |
|
|
const SNS::SStringW &amp;amp;amp; | strValue, |
|
|
BOOL | bLoading = FALSE ) |
|
inlinevirtual |
◆ SetScale()
void SMenuAttr::SetScale |
( |
int | scale | ) |
|
设置缩放比例
- Parameters
-
Definition at line 95 of file SMenu.cpp.
◆ SMenu
◆ SMenuODWnd
◆ m_crTxtGray
COLORREF SMenuAttr::m_crTxtGray |
|
protected |
◆ m_crTxtNormal
COLORREF SMenuAttr::m_crTxtNormal |
|
protected |
◆ m_crTxtSel
COLORREF SMenuAttr::m_crTxtSel |
|
protected |
◆ m_dpiFont
◆ m_nIconMargin
◆ m_nItemHei
◆ m_nMaxWidth
◆ m_nTextMargin
◆ m_pCheckSkin
◆ m_pIconSkin
◆ m_pItemSkin
◆ m_pSepSkin
◆ m_scale
◆ m_strTrCtx
◆ m_szIcon
The documentation for this class was generated from the following files: