摘要:
自定义按钮首先创建一个基于CButton的CCustomButton类 添加该类的虚函数DrawItem代码如下:void CCustomButton::DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct){ // TODO: Add your code to draw the specified item CRect rect; GetClientRect(rect); CDC dc; dc.Attach(lpDrawItemStruct->hDC); int x,y,r; x=rect.Width()/2; y=rect.top; r=r... 阅读全文
posted @ 2013-03-18 20:08 探索者_fhw 阅读(508) 评论(0) 推荐(0)
浙公网安备 33010602011771号