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 严武 阅读(174) 评论(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 严武 阅读(1408) 评论(0) 推荐(0) 编辑


Copyright © 2024 严武
Powered by .NET 8.0 on Kubernetes