HBITMAP SetBitmap( HBITMAP hBitmap );
The handle of a bitmap previously associated with the button.
The handle of a bitmap.
Call this member function to associate a new bitmap with the button.
The bitmap will be automatically placed on the face of the button, centered by default. If the bitmap is too large for the button, it will be clipped on either side. You can choose other alignment options, including the following:
Unlike CBitmapButton, which uses four bitmaps per button, SetBitmap uses only one bitmap per the button. When the button is pressed, the bitmap appears to shift down and to the right.