soui 5.0.0.1
Soui5 Doc
 
Loading...
Searching...
No Matches
SOwnerDraw< T > Class Template Reference

所有者绘制模板类 More...

#include <SMenu.h>

Public Member Functions

LRESULT OnDrawItem (UINT, WPARAM, LPARAM lParam, BOOL &bHandled)
 处理WM_DRAWITEM消息
 
LRESULT OnMeasureItem (UINT, WPARAM, LPARAM lParam, BOOL &bHandled)
 处理WM_MEASUREITEM消息
 
LRESULT OnCompareItem (UINT, WPARAM, LPARAM lParam, BOOL &bHandled)
 处理WM_COMPAREITEM消息
 
LRESULT OnDeleteItem (UINT, WPARAM, LPARAM lParam, BOOL &bHandled)
 处理WM_DELETEITEM消息
 
LRESULT OnMenuChar (UINT, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
 处理WM_MENUCHAR消息
 
void DrawItem (LPDRAWITEMSTRUCT)
 绘制菜单项
 
void MeasureItem (LPMEASUREITEMSTRUCT lpMeasureItemStruct)
 测量菜单项
 
int CompareItem (LPCOMPAREITEMSTRUCT)
 比较菜单项
 
void DeleteItem (LPDELETEITEMSTRUCT)
 删除菜单项
 

Detailed Description

template<class T>
class SOwnerDraw< T >

所有者绘制模板类

Template Parameters
T派生类类型

Definition at line 158 of file SMenu.h.

Member Function Documentation

◆ CompareItem()

template<class T>
int SOwnerDraw< T >::CompareItem ( LPCOMPAREITEMSTRUCT )
inline

比较菜单项

Parameters
lpCompareItemStruct比较项结构
Returns
比较结果

Definition at line 301 of file SMenu.h.

◆ DeleteItem()

template<class T>
void SOwnerDraw< T >::DeleteItem ( LPDELETEITEMSTRUCT )
inline

删除菜单项

Parameters
lpDeleteItemStruct删除项结构

Definition at line 311 of file SMenu.h.

◆ DrawItem()

template<class T>
void SOwnerDraw< T >::DrawItem ( LPDRAWITEMSTRUCT )
inline

绘制菜单项

Parameters
lpDrawItemStruct绘制项结构

Definition at line 268 of file SMenu.h.

◆ MeasureItem()

template<class T>
void SOwnerDraw< T >::MeasureItem ( LPMEASUREITEMSTRUCT lpMeasureItemStruct)
inline

测量菜单项

Parameters
lpMeasureItemStruct测量项结构

Definition at line 278 of file SMenu.h.

◆ OnCompareItem()

template<class T>
LRESULT SOwnerDraw< T >::OnCompareItem ( UINT ,
WPARAM ,
LPARAM lParam,
BOOL & bHandled )
inline

处理WM_COMPAREITEM消息

Parameters
uMsg消息ID
wParam附加参数1
lParam附加参数2
bHandled消息是否被处理
Returns
处理结果

Definition at line 216 of file SMenu.h.

◆ OnDeleteItem()

template<class T>
LRESULT SOwnerDraw< T >::OnDeleteItem ( UINT ,
WPARAM ,
LPARAM lParam,
BOOL & bHandled )
inline

处理WM_DELETEITEM消息

Parameters
uMsg消息ID
wParam附加参数1
lParam附加参数2
bHandled消息是否被处理
Returns
处理结果

Definition at line 232 of file SMenu.h.

◆ OnDrawItem()

template<class T>
LRESULT SOwnerDraw< T >::OnDrawItem ( UINT ,
WPARAM ,
LPARAM lParam,
BOOL & bHandled )
inline

处理WM_DRAWITEM消息

Parameters
uMsg消息ID
wParam附加参数1
lParam附加参数2
bHandled消息是否被处理
Returns
处理结果

Definition at line 182 of file SMenu.h.

◆ OnMeasureItem()

template<class T>
LRESULT SOwnerDraw< T >::OnMeasureItem ( UINT ,
WPARAM ,
LPARAM lParam,
BOOL & bHandled )
inline

处理WM_MEASUREITEM消息

Parameters
uMsg消息ID
wParam附加参数1
lParam附加参数2
bHandled消息是否被处理
Returns
处理结果

Definition at line 199 of file SMenu.h.

◆ OnMenuChar()

template<class T>
LRESULT SOwnerDraw< T >::OnMenuChar ( UINT ,
WPARAM wParam,
LPARAM lParam,
BOOL & bHandled )
inline

处理WM_MENUCHAR消息

Parameters
uMsg消息ID
wParam附加参数1
lParam附加参数2
bHandled消息是否被处理
Returns
处理结果

Definition at line 249 of file SMenu.h.


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