qintangtao

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

随笔分类 -  控件的自绘

摘要://主要两个步骤://第一个步骤就是在CMainFrame::OnCreate里面增加 HINSTANCE hInst = LoadLibrary(_T("UxTheme.dll")); if (hInst) { typedef HRESULT (WINAPI *PFUN_SetWindowTheme)(HWND, LPCTSTR, LPCTSTR); PFUN_SetWindowTheme pFun = (PFUN_SetWindowTheme)GetProcAddress(hInst, "SetWindowTheme"); if (p... 阅读全文
posted @ 2013-08-25 23:18 qintangtao 阅读(449) 评论(0) 推荐(0)

摘要:Button.h#pragma once// QButtonclass QButton : public CButton{ DECLARE_DYNAMIC(QButton)// Constructionpublic: QButton(); //Attributesprotected: //The outside border of the button CPen m_penBoundry; //When the mouse pointer above button button inside the frame CPen m_penInsideBoun... 阅读全文
posted @ 2013-07-18 16:16 qintangtao 阅读(392) 评论(0) 推荐(0)