MFC贴肤Skin++

来源:互联网 发布:党员数据分析 编辑:程序博客网 时间:2024/06/05 10:32

1.在工程文件和debug文件下中添加SkinPlusPlusDLL.dll,SkinPlusPlusDLL.lib,SkinPlusPlus.h,SoftCrystal.ssk,XPCorona.ssk

在连接中添加SkinPlusPlusDLL.lib

2在stdafx.h头文件中添加头文件

#endif // _AFX_NO_AFXCMN_SUPPORT


#include "SkinPlusPlus.h" //添加的头文件


//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.


#endif // !defined(AFX_STDAFX_H__8DAA8FDC_3A8F_4B99_8425_5C6B6DD8AC91__INCLUDED_)
#include"afxdb.h"

3.在XXApp的InitInstance()文件中添加如下代码:


InitializeSkin(_T("XPCorona.ssk"));//添加的代码
AfxEnableControlContainer();


// Standard initialization
// If you are not using these features and wish to reduce the size
//  of your final executable, you should remove from the following
//  the specific initialization routines you do not need.
    
#ifdef _AFXDLL
Enable3dControls();

运行即可!!!!!!!!

0 0
原创粉丝点击