CIconButton - A button control with an icon combined with text. This class makes it possible to combine an icon and text on a button control. which unfortunately can’t be done with MFC’s CButton class.I’ve tried to make it look and feel the same as the standard button, so text aligning and disabled mode are implemented exactly the same as the original Windows button.CIconButton also has XP theme support (because it would look a kind of old-fashioned with XP themes enabled...). I’ve included a MFC theme wrapper class (CTheme) to simplify the use of themes.The class has only one extra method:

void SetIcon(UINT nID, int nWidth, int nHeight);

where: nID is the resource ID of the iconnWidth is the width of the iconnHeight is the height of the icon.