Skinline program interface renovation tool

xiaoxiao2021-03-06  42

Category: Interface Author: Geng sea by e-mail address: genghaizeng@163.com download Development Environment: VC6 Windows XP test environment: WindowsXP Description: SkinLoad program is a tool for skinning, through a few simple function call can give you Applications plus beautiful skin, including all system dialogs. You can customize your skin by SkinlineMaker skin editing tool.

Interface Picture: How to implement a skin in the program:

First, static link dynamic library requires three files: "SkinLoadLib.h", "SkinLoad.lib", "SkinLoad.dll" 1, add "skinLoadLib.h", "skinLoad.lib" file to the project 2, in the app The class contains header files: #include "skinloadLib.h" 3, initialized dynamic libraries in the initInstance () function of the App class, loading skin files: initskinload ()); loadskin ("xp_normal.skin"); // You can put it anywhere, if in different files, you want to include the header file 4, unload the dynamic library, release the resources used in ExitInstance (): EXITSKINLOAD (); Description: This is convenient, the disadvantage is that the program is running Must ensure that the skinLoad.dll file exists, otherwise the program cannot run

Second, dynamically load dynamic library 1, load dynamic libraries in the INITINSTANCE () function of the app class. Define a variable saved dynamic library handle, which can be global, or a member variable of the APP class hinstance m_hdllskin; m_hdllskin = loadingLibrary ("skinLoad.dll"); 2, call initialization in the initInstance () function of the app class function and load skin file function if (m_hDllSkin = NULL!) {typedef int (* INITSKIN) (DWORD dwThreadId); typedef bool (* LOADSKIN) (char * cPath); INITSKIN pInitSkin = (INITSKIN) GetProcAddress (m_hDllSkin, "InitSkinLoad "); LOADSKIN pLoadSkin = (LOADSKIN) GetProcAddress (m_hDllSkin," LoadSkin ");! if (pInitSkin = NULL && pLoadSkin = NULL) {(* pInitSkin) (GetCurrentThreadId (!)); (* pLoadSkin) (" xp_normal.skin ");}} 3, in the App EXITINSTANCE () unloaded dynamic library if (m_hdllskin! = Null) {typedef Bool (* EXITSKIN) (); exitskin pexitskin = (exitskin) getProcadDress (M_HDLLSKIN, "EXITSKIN"); if (pexitskin! = Null) {(* pexitskin ();} Freelibrary (m_hdllskin); But this can

During the program, if the required SkinLoad.dll dynamic library exists, it is not possible to cause the program that cannot run the skin making tool SkinLoadMaker instructions:

The program comes with a skin file and makes its own skin file, as long as the corresponding place is modified. If you don't make any modifications, you can generate a skin file directly, and the same as my XP_NORMAL.SKIN. When running SkinLoadMaker, a TEMP folder will be generated, and the picture is placed is the picture used, and everyone can change it according to the format. Description: Title Bar Background Diagram: There are two, one is normal, one is the program's loss of focus, put on a picture in the upper and lower order: Minimize, maximize, restore, and close. Each figure contains four small ports, named Normal, Mouse ON, Mouse Down, DISABLED button bitmap: may not be used. It is also four states to put them in a picture. Normal, Mouse ON, Mouse Down, Disabled, respectively

Version 0.3 Main Changes: 1. Remove the original "Powered By SkinLoad" flag 2, support XP style buttons 3, modify several issues

转载请注明原文地址:https://www.9cbs.com/read-73049.html

New Post(0)