2009年12月20日

摘要: HICON up = AfxGetApp()->LoadIcon(IDI_ICONUP); CButton* pButton; pButton = (CButton*)GetDlgItem(IDC_BUTTON1); pButton->ModifyStyle(0,BS_ICON); pButton->SetIcon(up); 阅读全文

posted @ 2009-12-20 19:14 严武 阅读(179) 评论(0) 推荐(0)

摘要: 头文件:CMyButton.h如下:#pragmaonce#include"afxwin.h"classCMyButton:publicCButton{//DECLARE_DYNAMIC(CMyButton)public:CMyButton();virtual~CMyButton();//设置ButtonDown的背景颜色voidSetDownColor(COLORREFcolor);//设置ButtonUp的背景颜色voidSetUpColor(COLORREFcolor);BOOLAttach(constUINTnID,CWnd*pParent);protected:/ 阅读全文

posted @ 2009-12-20 19:07 严武 阅读(1423) 评论(0) 推荐(0)


博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3