ReactOS 0.4.15-dev-8349-g6f277e9
CUIFIcon Class Reference

#include <cicuif.h>

Collaboration diagram for CUIFIcon:

Public Member Functions

CUIFIconoperator= (HICON hIcon)
 
HIMAGELIST GetImageList (BOOL bMirror)
 

Public Attributes

HICON m_hIcon
 
HIMAGELIST m_hImageList
 

Detailed Description

Definition at line 332 of file cicuif.h.

Member Function Documentation

◆ GetImageList()

HIMAGELIST CUIFIcon::GetImageList ( BOOL  bMirror)

Definition at line 1019 of file cicuif.cpp.

1020{
1021 if (!m_hImageList)
1022 return NULL;
1023
1024 if (m_hIcon)
1025 {
1026 SIZE iconSize;
1027 cicGetIconSize(m_hIcon, &iconSize);
1028
1030 if (bMirror)
1031 uFlags |= ILC_MIRROR;
1032
1033 m_hImageList = ImageList_Create(iconSize.cx, iconSize.cy, uFlags, 1, 0);
1034 if (m_hImageList)
1036
1037 return m_hImageList;
1038 }
1039
1040 return NULL;
1041}
BOOL cicGetIconSize(HICON hIcon, LPSIZE pSize)
Definition: cicuif.cpp:5375
HICON m_hIcon
Definition: cicuif.h:335
HIMAGELIST m_hImageList
Definition: cicuif.h:336
#define NULL
Definition: types.h:112
UINT uFlags
Definition: api.c:59
INT WINAPI ImageList_ReplaceIcon(HIMAGELIST himl, INT nIndex, HICON hIcon)
Definition: imagelist.c:2779
HIMAGELIST WINAPI ImageList_Create(INT cx, INT cy, UINT flags, INT cInitial, INT cGrow)
Definition: imagelist.c:804
unsigned int UINT
Definition: ndis.h:50
#define ILC_MIRROR
Definition: commctrl.h:360
#define ILC_COLOR32
Definition: commctrl.h:358
#define ILC_MASK
Definition: commctrl.h:351
LONG cx
Definition: kdterminal.h:27
LONG cy
Definition: kdterminal.h:28

◆ operator=()

CUIFIcon & CUIFIcon::operator= ( HICON  hIcon)
inline

Definition at line 338 of file cicuif.h.

339 {
340 m_hIcon = hIcon;
341 if (m_hImageList)
342 {
345 }
346 return *this;
347 }
BOOL WINAPI ImageList_Destroy(HIMAGELIST himl)
Definition: imagelist.c:928
HICON hIcon
Definition: msconfig.c:44

Member Data Documentation

◆ m_hIcon

◆ m_hImageList

HIMAGELIST CUIFIcon::m_hImageList

Definition at line 336 of file cicuif.h.

Referenced by CUIFButton::CUIFButton(), GetImageList(), operator=(), and CUIFButton::~CUIFButton().


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