天天看點

Creating Skins with SkinSys Ver 1.0

SkinsSys is a picture-based skin system written in Visual C++/MFC and based on FriendSoft's SkinForm.

This article (and its downloads) includes the following:

CSkinsys codes

Simple Skin Editor

A beatiful MPEG 1,2,3 decoder (Copyright www.eldos.org - based on the MAPlay Decoder)

MPEGPlayer project

Once you download and extract the files, you'll see several new folders. Here is what each is used for.

Decoder: MPEG Decoder codes

Editor : Skineditor Files

Sample : Sample Skin Files

SkinSys: CSkinsys Codes

Root : MPEGPlayer Project

This system only requires the "OleLoadPicture" function (Please see LoadPictureFile function in Skindialog.cpp)

Please Read This notes and see Sample Directory and MPEGPlayer project

Draw mask bitmap

Draw main Bitmap

If you need or want

Draw mouse over bitmap

Draw mouse down bitmap

Draw disable bitmap

Run Skineditor

Select "Screens" Tab

Fill All Pictures

If you want select "Preview" Button

Save and exit

Run Visual Studio

Create a Dialog based new Project (for example Dialog Name = CBaseDialog)

Include "SkinDialog.h" (for example in "StdAfx.h")

Change to CBaseDialog : public CDialog to CBaseDialog : public CSkinDialog

Go to CBaseDialog::OnInitDialog

Add these lines

Compile and Run

Here are the protocols for the different events that you might want to handle in the base class (CSkinDialog)...

You can also add any of these functions to your class depending on your needs.

Changing the tooltip Use one of the Set<xxx>ToolTip functions. Where <xxx> is Button, Text, etc. For example:

Getting Value Use one of the Get<xxx> functions. For example:

Setting Value Use one of the Set<xxx> functions. For example:

繼續閱讀