www.pudn.com > EasySkin.rar > EasySkinLib.h
/*************************************************************************** // This is a part of the EasySkin SDK library. // Copyright (C) 2003-2002 EasySkin Inc. // All rights reserved. // // This source code is only intended as a supplement to the // EasySkin SDK Reference and related electronic documentation // provided with the library. // See these sources for detailed information regarding the // EasySkin SDK product. // EasySkinLib SDK is a library designed for C/C++/VB/Dephi programmer, // you can add the most popular function of changing skin to your // application with the API supplied by this library. EasySkin // is picture-based skin system, you can power your application // with skin-changeable with simple call of several functions. // And with the skin editor , you can customize your own skin. *****************************************************************************/ #ifndef _EasySkinLib_H_ #define _EasySkinLib_H_ #include#include #pragma comment(lib,"EasySkin.lib") #pragma message("Automatically linking with EasySkin.dll") #pragma pack(push, 8) /////////////////////////////////////////////////////////////////////////// //Function: InitEasySkinLib(HINSTANCE hInstance, char* szApplication , // char* szReserved1, // char* 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: // InitEasySkinLib function should be the first API called in EasySkinLib SDK, // followed by other APIs. // For multithreaded applications, you must call InitEasySkinLib in every thread. // int __stdcall InitEasySkinLib( HINSTANCE hInstance, char* szApplication , char* szReserved1, char* szReserved2 ); /////////////////////////////////////////////////////////////////////////// //Function: ExitEasySkinLib( ) // Load skin from file. //Return Values: // If the function success, the return value is nonzero // If the function fail, the return value is zero //Remarks: // ExitEasySkinLib function should be the last API called in EasySkinLib SDK. // For multithreaded applications, you must call InitEasySkinLib in every thread. void __stdcall ExitEasySkinLib(); /////////////////////////////////////////////////////////////////////////// //Function: LoadSkinFile( char* 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( char* SkinFile ); /////////////////////////////////////////////////////////////////////////// //Function: SetWindowSkin( HWND hWnd , char* 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 , char* 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 ); /////////////////////////////////////////////////////////////////////////// //Function: SetDialogSkin( char* szSkinName ) // set skin of new create dialog // //Parameters: // szSkinName // [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 this function to set dialog skin. dialog will auto be skinned // after this function called. // int __stdcall SetDialogSkin( char* szSkinName ); /////////////////////////////////////////////////////////////////////////// //Function: RemoveDialogSkin() // This function will stop auto skin dialog. // the function will not remove the dialog's // skin which already set. The new create dialog will have no skin. // //Parameters: // none. //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 stop auto skin dialog. // int __stdcall RemoveDialogSkin(); #pragma pack(pop) #endif