Icon Class Reference

upon destruction of this object More...

List of all members.

Public Member Functions

HICON getIcon () const
 Getter for the underlying HICON.
 Icon (const SmartUtil::tstring &filePath)
 RAII Constructor loading a icon from a file on disc.
 Icon (unsigned resourceId)
 RAII Constructor loading a icon from a resource ID.
 Icon (HICON icon)
 RAII Constructor taking a HICON.
 ~Icon ()
 Frees the contained HICON.


Detailed Description

upon destruction of this object

Use this class if you need RAII semantics encapsulating an HICON


Constructor & Destructor Documentation

Icon ( HICON  icon  )  [explicit]

RAII Constructor taking a HICON.

Note!
Class takes "control" of HICON meaning it will automatically free the contained HICON upon destruction

Icon ( unsigned  resourceId  )  [explicit]

RAII Constructor loading a icon from a resource ID.

Note!
Class takes "control" of HICON meaning it will automatically free the contained HICON upon destruction

Icon ( const SmartUtil::tstring &  filePath  )  [explicit]

RAII Constructor loading a icon from a file on disc.

Note!
Class takes "control" of HICON meaning it will automatically free the contained HICON upon destruction

~Icon (  ) 

Frees the contained HICON.

Frees the contained HICON meaning it will no longer be accessible or it will be destroyed


Member Function Documentation

HICON getIcon (  )  const

Getter for the underlying HICON.

Use when you need to access the underlying HICON

Back to SmartWin website
SourceForge.net Logo