/***************************************************************************
// This is a part of the SkinMagic SDK library.
// Copyright (C) 2009-2002 Appspeed Inc.
// All rights reserved.
//
// This source code is only intended as a supplement to the
// SkinMagic SDK Reference and related electronic documentation
// provided with the library.
// See these sources for detailed information regarding the
// SkinMagic SDK product.
// SkinMagicLib SDK is a library designed for C/C++ programmer,
// you can add the most popular function of changing skin to your
// application with the API supplied by this library. SkinMagic
// is picture-based skin system, you can power your application
// with skin-changeable with simple call of several functions.
// And with the skin editor of SkinMagicBuilder, you can customize
// your own skin.
*****************************************************************************/
#ifndef _SKINMAGICLIB_H__
#define _SKINMAGICLIB_H__
#include <windows.h>
#include <commctrl.h>
//Skinmagic error code
#define SMEC_OK 0
#define SMEC_REGISTERWINDOW 1 //fail to register windows class
#define SMEC_MESSAGEHOOK 2 //fail to set message hook
#define SMEC_KEYHOOK 3 //fail to set keyboard hook
#define SMEC_FILENOTFOUND 4 //not find the file
#define SMEC_DECOMPRESSERROR 5 //fail to decompress skin file
#define SMEC_HEADERERROR 6 //skin file header error
#define SMEC_SKINVERSIONERROR 7 //skin file version not match
#define SMEC_OBJECTNOTFOUND 8 //obect not found
#define SMEC_OBJECTTYPEUNMATCH 9 //Object type not match
#define SMEC_IMAGESIZEERROR 10 //Image size error
#define SMEC_CREATEIMAGELISTFAIL 11 //fail to create image list object
#define SMEC_NOTIMPLEMENT 12 //The function not implement
#define SMEC_PARAMETERERROR 13 //the function parameter error
#define SMEC_INITSCROLLBARFAIL 14 //fail to skin scrollbar
#define SMEC_LOADRESOURCEFAIL 15 //fail to load the resource
#define SMEC_FINDRESOURCEFAIL 16 //fail to find the resource
#define SMEC_WINDOWSXPNOTCOMPATIBLE 17 //not compatible with Windows XP
#define SMEC_OUTOFMEMORY 18 //Out of memory
#define SMEC_LIBARAYNOTINITIALIZED 19 //Library not initialized
#pragma pack(push, 8)
///////////////////////////////////////////////////////////////////////////
//Function: InitSkinMagicLib(HINSTANCE hInstance, LPCTSTR szApplication ,
// LPCTSTR szReserved1,
// LPCTSTR szReserved2
//
//Parameters:
// hInstance
// [in] Handle of application instance.
// szApplication
// [in] Application defined in skin file. If you set this parameter the
// library can only load the skin file which application object named
// match szApplication.
// szReserved1
// [in] Reserved.
// szReserved2
// [in] Reserved.
//Return Values:
// If the function success, the return value is nonzero
// If the function fail, the return value is zero
//Remarks:
// InitSkinMagicLib function should be the first API called in SkinMagicLib SDK,
// followed by other APIs.
// For multithreaded applications, you must call InitSkinMagicLib in every thread.
//
int __stdcall InitSkinMagicLib( HINSTANCE hInstance,
LPCTSTR lpApplication ,
LPCTSTR lpReserved1,
LPCTSTR lpReserved2 );
///////////////////////////////////////////////////////////////////////////
//Function: LoadSkinFile( LPCTSTR SkinFile )
// Load skin from file.
//Parameters:
// SkinFile
// [in] Specifies the skin file name.
//Return Values:
// If the function success, the return value is nonzero
// If the function fail, the return value is zero
//Remarks:
// ExitSkinMagicLib function should be the last API called in SkinMagicLib SDK.
// For multithreaded applications, you must call InitSkinMagicLib in every thread.
void __stdcall ExitSkinMagicLib();
///////////////////////////////////////////////////////////////////////////
//Function: LoadSkinFile( LPCTSTR SkinFile )
// Load skin from file.
//Parameters:
// SkinFile
// [in] Specifies the skin file name.
//Return Values:
// If the function success, the return value is nonzero
// If the function fail, the return value is zero
//Remarks:
// Load skin from file.
int __stdcall LoadSkinFile( LPCTSTR lpSkinFile );
///////////////////////////////////////////////////////////////////////////
//Function: LoadSkinFromResource(HMODULE hModule, LPCTSTR lpSkinName ,LPCTSTR lpType)
// Use this function to load skin from resource.
//Parameters:
// hModule
// [in] Handle to the module whose executable file contains the resource.
// A value of NULL specifies the module handle associated with the image
// file that the operating system used to create the current process.
// lpSkinName
// [in] Specifies the name of the skin resource.
// lpType
// [in] Specifies the resource type.
//Return Values:
// If the function success, the return value is nonzero
// If the function fail, the return value is zero
//Remarks:
// The application can use skin defined in resource.
int __stdcall LoadSkinFromResource(HMODULE hModule, LPCTSTR lpSkinName ,LPCTSTR lpType);
///////////////////////////////////////////////////////////////////////////
//Function: SetWindowSkin( HWND hWnd , LPCTSTR SkinName )
// Use SetWindowSkin to skin the standard windows - with rectangular
// opaque client area and region-based non-client area, menu bar,
// system/maximize/minimize/close buttons, caption and sizing edges
// and corners.
//
//Parameters:
// hWnd
// [in]Handle to the window to be remove skin.
// SkinName
// [in]Specifies the name of FrameWnd object which defined in skin file.
//
//Return Values:
// If the function success, the return value is nonzero
// If the function fail, the return value is zero
//Remarks:
// Use SetWindowSkin to skin the standard windows - with rectangular
// opaque client area and region-based non-client area, menu bar,
// system/maximize/minimize/close buttons, caption and sizing edges
// and corners.
int __stdcall SetWindowSkin( HWND hWnd , LPCTSTR lpSkinName );
///////////////////////////////////////////////////////////////////////////
//Function: SetShapeWindowSkin( HWND hWnd , LPCTSTR SkinName )
// Use SetShapeWindowSkin to skin application-specific windows
// without non-client area and menu bar. These windows can have
// absolutely any shape or even be translucent.
//
//Parameters:
// hWnd
// [in]Handle to the window to be remove skin.
// SkinName
// [in]Specifies the name of ShapeWnd object which defined in skin file.
//
//Return Values:
// If the function success, the return value is nonzero
// If the function fail, the return value is zero
//Remarks:
// Use SetShapeWindowSkin to skin application-specific windows
// without non-client area and menu bar. These windows can have
// absolutely any shape or even be translucent.
//
int __stdcall SetShapeWindowSkin( HWND hWnd , LPCTSTR SkinName );
///////////////////////////////////////////////////////////////////////////
//Function: RemoveWindowSkin( HWND hWnd )
// set skin of new create dialog
//
//Parameters:
// hWnd
// [in]Handle to the window to be remove skin.
//
//Return Values:
// If the function success, the return value is nonzero
// If the function fail, the return value is zero
//Remarks:
// Use this function to remove window skin.
//
int __stdcall RemoveWindowSkin( HWND hWnd );
///////////////////////////////////////////////////////////////////////////
//Functi
pdf翻译软件
2星 需积分: 47 150 浏览量
2018-07-21
17:28:56
上传
评论 4
收藏 7.07MB RAR 举报
Jpxjmini
- 粉丝: 1
- 资源: 5
最新资源
- 奥迪A8D4仪表开机报文
- apache-skywalking-java-agent 8.8.0-9.2.0,一共12个版本
- DTS7001-VB一款SOT23封装P-Channel场效应MOS管
- ZTE-C300 OLT常用命令
- 6666666666666666
- DTS6410-VB一款SOT23封装N-Channel场效应MOS管
- SpyGlass-PowerVerifyMethodology-GuideWare2.0-UserGuide
- DTS6401-VB一款P-Channel沟道SOT23的MOSFET晶体管参数介绍与应用说明
- 基于树莓派、OpenCV及Python语言的人脸识别-i
- 游戏开发 UE蓝图 分支(Branch)节点和源码.pdf
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈