摘要://主要两个步骤://第一个步骤就是在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...
阅读全文
随笔分类 - 控件的自绘
摘要: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...
阅读全文