发现按钮style那里有 图标 和 位图 的选项 ,但要究竟如何才能使 一幅位图或图标代替 按钮样式啊?
谢谢

解决方案 »

  1.   

    CButton::SetBitmap();Call this member function to associate a new bitmap with the button.HBITMAP SetBitmap(
       HBITMAP hBitmap 
    );
    Parameters
    hBitmap 
    The handle of a bitmap. 
    Return Value
    The handle of a bitmap previously associated with the button.Res
    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: BS_TOP 
    BS_LEFT 
    BS_RIGHT 
    BS_CENTER 
    BS_BOTTOM 
    BS_VCENTER 
    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.
      

  2.   

    晕,我较菜啊,上面的不是很懂  hBitmap 是指那幅图片的ID吗?另外如果想将按钮作成圆的应该如何设置啊?