text: This control is a static control that creates a simplified toolbar similar to those found in Visual Studio. As the demo application shows, (as do the pictures above), the control creates a series of buttons within a static control. These buttons can be enabled or disabled, and the control can be drawn with or without a static edge.
  It is very easy to put this control into your project. Here's an example:
  btnST.cpp
  btnST.h
  ButtonGroupCtl.cpp
  ButtonGroupCtl.h
  CButtonGroupCtl
  If this does not appear, choose CStatic and then edit your class definition to use CButtonGroupCtl instead.
  CStatic
  Also in your class definition, add the following line:
  #include "ButtonGroupCtl.h"
  CImageList
  AddButton
  void AddButton(int nID, int nImage, LPCTSTR pszToolTip)
  nID is the ID of the control you wish to add, for instance IDC_NEW.
  nImage is the index of the image from the ImageList you wish to use.
  pszToolTip is the tooltip you wish to use for the control. You may leave this blank.
  IDC_NEW
  Note that you cannot add or remove buttons from the control once it has been subclassed – it is not intended as a replacement for the toolbar control.
  OnAdd()
  You should then add an entry in the message map, for instance:
  ON_BN_CLICKED(IDC_NEW, OnAddItem)
  Optionally, you can use the EnableButton(nID, bEnable = true) function to enable and disable buttons at run-time. Note that you cannot call this function until the control has been subclassed. If you want buttons to be initially enabled or disabled, you should do this in your OnInitDialog() override.
  EnableButton(nID, bEnable = true)
  OnInitDialog()
  I hope this article has helped – the class is relatively simple and basic, but this was the aim. I often have come across the problem where items in a list need to be managed but have not had space to have full-blown buttons with text etc. to do this, so wrote this class to solve that problem. I also felt it was a fairly simple user interface concept to understand because of its use in other programs and also because of its similarity to a toolbar control. I may later update it with the ability to have its contents changed after it has been subclassed although I have not come across a need for this yet myself.
  I would like to thank Davide Calabro (davide_calabro@yahoo.com) for his CButtonST class.
  CButtonST
  13 May 2001 -.