[MFC Landscaping] Uskin use details-how to use

Source: Internet
Author: User

This kind of skin library data is very few, the usage is similar to the preceding several.

It mainly consists of four files: USkin.dll, Uskin.lib,uskin.h and Sakura.msstyles. The skin format is. U3. Skinbuilder is the Uskin interface skin-changing software. U3 file Authoring environment.

The following is the use of the groping out, please correct me if there are errors.

I. Methods of Use

1. Copy the four files to the appropriate folder: Lib and. h are placed in the project folder, and the. dll and Sakura.msstyles are placed under the Debug folder.

2. Add USkin.h and USkin.lib to the project StdAfx.h file

// .. #endif //  "USkin.h"//Add #pragma in this place       // or add USkin.lib in the (Additional dependencies) "Project->settings->link->object/library" // {{afx_insert_location}}

3. Initialize the skin library in the InitInstance () of the app class file

AfxEnableControlContainer ();

BOOL bRe = Uskininit (null,null,_t ("sakura.msstyles")); //Note: The wrong path will cause the Uskininit function to fail and not show the skin. The file should be placed under debug
Uskininit (null,null,_t ("Media.u3"));

4. Load skin (. U3 skin)

Uskinloadskin (LPCTSTR lpszfilename); Uskinloadskinfrombuffer (byte* lpbuffer,uint nbuffersize); Uskinloadskinfromresource (hmodule hinstance,lpctstr lpszresourcename,lpctstr lpszresourcetype);

5. Uninstall the Skin Library

int cpmfcapp::exitinstance () {    //    return  cwinapp::exitinstance ();}

6. Change the color theme

Uskinapplycolortheme (float Fhue,float  fsaturation); Uskinapplycolorthemebyrgb (Colorref clrtheme);

Color themes are supported. This can make the skin file look like a 100 different skin. Uskin offers a free version.

Characteristics:

The control has a companion skin development kit Skinbuilder, but there is less skin ready.

1. The control supports a variety of color matching schemes for a skin.

2. The control supports more than 20 kinds of Windows controls. such as file dialog, Color dialog box, Print dialog box, support custom controls/third-party controls,

3, support the WYSIWYG style of skin file editing, support MDI/SDI/Dialogue style application, support shutter skin file Import, can be used for more than 10000 skin file support color theme, support VC/SDK/VB/. NET, no language restrictions, support multi-threading, Support to change skin at runtime, support all pop-up menus, including edit control context menu!

4. When there are no submenu items under the menu item in the dialog box, an exception occurs when the mouse moves to the menu.

5, the returned menu handle is empty, cannot implement the check (tagged) function.

6. Support for redrawing controls is not good.

Free Brand new SkinBuilder2.0 (at the moment it seems to be 3.0). Original domestic only perfect MDI mode of Skinbuilder, support user Custom Skin Object!

7. The new Drawing mode option. Exclusive translucent effect support!!!

8. The Skin object supports message events! It's too easy to do Winamp!

RELATED links:

Free skin control using method and effect test--uskin v2.2

Http://www.68idc.cn/help/mysqldata/DB2/20150902532500.html

Uskin skin usage, resources, editor

http://download.csdn.net/download/youwuleon/2699150

Realization of skin-changing function based on Uskin software

Http://www.docin.com/p-752155506.html

Http://www.orcode.com/article/Libraries_20122295.html

[MFC Landscaping] Uskin use details-how to use

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.