Icon Struct Reference

#include <ibrowser.h>

Inheritance diagram for Icon:

Inheritance graph
[legend]
Collaboration diagram for Icon:

Collaboration graph
[legend]

Public Member Functions

 Icon ()
 Icon (ICON_ID id, UINT nid)
 Icon (ICON_TYPE itype, int id, HICON hIcon)
 Icon (ICON_TYPE itype, int id, int sys_idx)
 operator ICON_ID () const
void draw (HDC hdc, int x, int y, int cx, int cy, COLORREF bk_color, HBRUSH bk_brush) const
HBITMAP create_bitmap (COLORREF bk_color, HBRUSH hbrBkgnd, HDC hdc_wnd) const
int add_to_imagelist (HIMAGELIST himl, HDC hdc_wnd, COLORREF bk_color=GetSysColor(COLOR_WINDOW), HBRUSH bk_brush=GetSysColorBrush(COLOR_WINDOW)) const
int get_sysiml_idx () const
bool destroy ()

Protected Attributes

ICON_ID _id
ICON_TYPE _itype
HICON _hicon
int _sys_idx

Detailed Description

Definition at line 132 of file ibrowser.h.


Constructor & Destructor Documentation

Icon::Icon (  ) 

Icon::Icon ( ICON_ID  id,
UINT  nid 
)

Icon::Icon ( ICON_TYPE  itype,
int  id,
HICON  hIcon 
)

Icon::Icon ( ICON_TYPE  itype,
int  id,
int  sys_idx 
)


Member Function Documentation

Icon::operator ICON_ID (  )  const [inline]

Definition at line 138 of file ibrowser.h.

References _id.

00138 {return _id;}

void Icon::draw ( HDC  hdc,
int  x,
int  y,
int  cx,
int  cy,
COLORREF  bk_color,
HBRUSH  bk_brush 
) const

HBITMAP Icon::create_bitmap ( COLORREF  bk_color,
HBRUSH  hbrBkgnd,
HDC  hdc_wnd 
) const

int Icon::add_to_imagelist ( HIMAGELIST  himl,
HDC  hdc_wnd,
COLORREF  bk_color = GetSysColor(COLOR_WINDOW),
HBRUSH  bk_brush = GetSysColorBrush(COLOR_WINDOW) 
) const

int Icon::get_sysiml_idx (  )  const [inline]

Definition at line 144 of file ibrowser.h.

References _itype, _sys_idx, and IT_SYSCACHE.

00144 {return _itype==IT_SYSCACHE? _sys_idx: -1;}

bool Icon::destroy (  )  [inline]

Definition at line 146 of file ibrowser.h.

References _hicon, _itype, and IT_DYNAMIC.

00146 {if (_itype == IT_DYNAMIC) {DestroyIcon(_hicon); return true;} else return false;}


Field Documentation

ICON_ID Icon::_id [protected]

Definition at line 149 of file ibrowser.h.

Referenced by operator ICON_ID().

ICON_TYPE Icon::_itype [protected]

Definition at line 150 of file ibrowser.h.

Referenced by destroy(), and get_sysiml_idx().

HICON Icon::_hicon [protected]

Definition at line 151 of file ibrowser.h.

Referenced by destroy().

int Icon::_sys_idx [protected]

Definition at line 152 of file ibrowser.h.

Referenced by get_sysiml_idx().


The documentation for this struct was generated from the following file:
IBrowser Source Code Documentation
generated on 18.09.2008 by doxygen

Homepage