skin.h

来自「PocketMVP V0.8082503 source for Pocket 的」· C头文件 代码 · 共 93 行

H
93
字号
 /***************************************************************************************
 *This program is free software; you can redistribute it and/or modify					*
 * it under the terms of the GNU General Public License as published by					*
 * the Free Software Foundation; either version 2 of the License, or					*
 * (at your option) any later version.													*
 *																						*
 * The GPL can be found at: http://www.gnu.org/copyleft/gpl.html						*
 *																						*
 *																						*	
 ****************************************************************************************
 * Authors:																			  *
 *          Marc Dukette                                                              *
 **************************************************************************************/

#include "stdafx.h"

#ifdef __cplusplus
extern "C" {
#endif 

#ifndef SKIN_H
#define SKIN_H
#if (_WIN32_WCE >= 300 && !defined(HPC))
#define Y_ADJUST 0
#else
#define Y_ADJUST 25
#endif

typedef struct _SkinItem
{
	int type;
	int top;
	int left;
	int width;
	int height;
	int pushedtop;
	int pushedleft;
	int rotated;
	int status;
	int step;
	int bigstep;
	TCHAR font[100];
	int point;
	int FontRed;
	int FontGreen;
	int FontBlue;
	int BackRed;
	int BackGreen;
	int BackBlue;
	bool scrolltext;
}SkinItem;

typedef struct _Skin
{
	TCHAR BkgImg[255];
	TCHAR BtnImg[255];
	SkinItem ViewPort;
	SkinItem StopButton;
	SkinItem PlayButton;
	SkinItem FFWDButton;
	SkinItem InfoView;
	SkinItem SeekSlider;
	SkinItem SeekButton;
	SkinItem VolSlider;
	SkinItem VolButton;
	SkinItem RotateButton;
	SkinItem FullScreenButton;
	SkinItem EQButton;
	SkinItem RepeatButton;
	SkinItem NextButton;
	SkinItem PrevButton;
	SkinItem MuteButton;
	SkinItem OpenButton;
	SkinItem EditorButton;
	SkinItem Time;
	SkinItem PlaylistView;
	SkinItem MediaView;
} Skin;

void LoadSkin(LPTSTR FileName,HWND hWnd);
void ProcessRelease(int x,int y);
void ProcessPush(int x,int y);
void ProcessTrack(int x,int y);
void LoadSkinItem(LPSTR Name,SkinItem* Item);
void LoadSkinImages(LPTSTR Path);
void LoadSkinFile(LPTSTR FileName,HWND hWnd);
bool CheckRect(int x, int y, SkinItem* rc);

#endif
#ifdef __cplusplus
}
#endif 

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?