PostHeaderIcon Also use the USkin3.0.0.1 Toolkit to Skin your Application

Same like SkinMagic , the USkin ToolKit can also skin you application, and it’s more simple!

Follow me, easy as the following steps:

First, copy four files into your project workspace:

USkinFiles

USkinFiles






the files are USkin.

Second, open the header file “stdafx.h”,copy the following two lines code:

// 导入uskin的头文件===begin===
#include "uskin.h"
#pragma comment(lib,"USkin.lib")
// 导入uskin的头文件===endl===

Third, insert the following code into yourApp::InitInstance() method:

// code here
AfxEnableControlContainer();

// 标准初始化
// 如果未使用这些功能并希望减小
// 最终可执行文件的大小,则应移除下列
// 不需要的特定初始化例程
// 更改用于存储设置的注册表项
// TODO: 应适当修改该字符串,
// 例如修改为公司或组织名

// 导入uskin的皮肤文件===begin===
USkinInit(NULL,NULL,_T("..\\Skins\\Vista.msstyles"));
// 导入uskin的皮肤文件===endl===
//code here

Last, overload the ExitInstance() method with your own ExitInstance() method:

int CUSkinTestApp::ExitInstance()
{
USkinExit(); // 释放USkin资源
return CWinApp::ExitInstance();
}

OK,easy, right~ so enjoy it!!!

19,249 views

Leave a Reply

Your email address will not be published. Required fields are marked *

*


*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>


Copyright © 2010 - C++ Technology. All Rights Reserved.

Powered by Jerry | Free Space Provided by connove.com