SkinSys Ver 1.0
A picture based skin system For MFC. Based on FriendSoft's (www.yeah.net/FriendSoft) SkinForm.
SkinSys is copyright 2000 Cüneyt ELÝBOL (www.celibol.freeservers.com)
Includes
- CSkinsys codes
- Simple Skin Editor
- A Beautiful MPEG 1,2,3 decoder (Copyright www.eldos.org - Based On MAPlay Decoder)
- MPEGPlayer project (not completed. It is only a sample.)
Directories
- Decoder: MPEG Decoder codes
- Editor: Skineditor Files
- Sample: Sample Skin Files
- SkinSys: CSkinsys Source Code
- Root: MPEGPlayer Project
Requirement
This system only requires the "OleLoadPicture
" function. (Please see the LoadPictureFile
function in Skindialog.cpp.)
How to Use
Please read these notes and see the 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
and add these lines:
char m_skin[512];
sprintf(m_skin, "<Your Skin Name>");
SetMenuID(IDR_MAINMENU);
SetWindowText("MPEG Player");
SetSkinFile(m_skin);
CSkinDialog::OnInitDialog();
- Compile and run.
Controlling Buttons Click, Trackbar, ProgressBar, Text, etc.
If you want these events in the Base Class (CSkinDialog
):
void ProgresChanged(CString m_Name); // If progress changes
void MouseMoved(CString m_ButtonName, int x, int y); // if Mouse Moved
void TrackChange(CString m_ButtonName, UINT nSBCode, UINT nPos); // if Trackbar change
void ButtonPressed(CString m_ButtonName); // if Button Pressed
you should add these functions to your CBaseDialog
class.
Changing the Tooltip
use Set<xxx>ToolTip
function. <xxx> is Button, Text...
For example:
SetButtonToolTip("BUTTON_USEEQ", "Equalizer is On");
Getting Value
use Get<xxx>
function
For example:
BOOL useEQ = GetButtonCheck("BUTTON_USEEQ");
Setting Value
use Set<xxx>
function
For example:
SetButtonCheck("BUTTON_USEEQ", useEQ);
Notes
Thanks for your interest in CSkinsys. This is the first release, and may have bugs and errors. Please report any bugs or errors, or any questions to me.
License
This article has no explicit license attached to it, but may contain usage terms in the article text or the download files themselves. If in doubt, please contact the author via the discussion board below.
A list of licenses authors might use can be found here.