// Create the Explore 16 colors button
m_btnExplore16.SubclassDlgItem(IDC_EXPLORE16, this);
m_btnExplore16.SetIcon(IDI_EXPLORE16);
// Create the View 16 colors button
m_btnView16.SubclassDlgItem(IDC_VIEW16, this);
m_btnView16.SetIcon(IDI_VIEW16);
// Create the Text 16 colors button
m_btnText16.SubclassDlgItem(IDC_TEXT16, this);
m_btnText16.SetIcon(IDI_TEXT16);
// Create the Question 16 colors button
m_btnQuestion16.SubclassDlgItem(IDC_QUESTION16, this);
m_btnQuestion16.SetIcon(IDI_QUESTION16);
// Create the Left 16 colors button
m_btnLeft16.SubclassDlgItem(IDC_LEFT16, this);
m_btnLeft16.SetIcon(IDI_LEFT16);
// Create the Right 16 colors button
m_btnRight16.SubclassDlgItem(IDC_RIGHT16, this);
m_btnRight16.SetIcon(IDI_RIGHT16);
// Create the Screw 16 colors button
m_btnScrew16.SubclassDlgItem(IDC_SCREW16, this);
m_btnScrew16.SetIcon(IDI_SCREW16);
// Set some color effect
m_btnScrew16.SetActiveFgColor(RGB(255,0,0));
m_btnScrew16.SetInactiveFgColor(RGB(0,255,0));
// Create the Exit 16 colors button
m_btnExit16.SubclassDlgItem(IDOK, this);
m_btnExit16.SetIcon(IDI_EXIT16);
// Draw this button as a standard button
m_btnExit16.SetFlat(FALSE);
// Assign a custom cursor
m_btnExit16.SetBtnCursor(IDC_HAND);
// Create the About 16 colors button
COLORREF crStandard = m_btnExit16.GetInactiveBgColor();
m_btnAbout16.SubclassDlgItem(IDC_ABOUT16, this);
m_btnAbout16.SetIcon(IDI_ABOUT16);
// Align icon vertically
m_btnAbout16.SetAlign(CButtonST::ST_ALIGN_VERT);
// Set some color effect
m_btnAbout16.SetInactiveBgColor(crStandard - RGB(20,20,20));
m_btnAbout16.SetActiveBgColor(crStandard + RGB(20,20,20));