Add skin library in Windows program

Source: Internet
Author: User

ProgramTo use the skin library, follow these steps:

1. Copy the following files to your program directory.

Skinplusplusdll. Lib, skinplusplusdll. dll, skinplusplus. H, minimized. SSK, xpna. SSK, softcrystal. SSK

Files with the. SSK suffix represent three skin library files

2. Include the header file and link skinplusplusdll. Lib. For example, add the following content to the stdafx. h file:Code

// Include the header file. Link skinplusplusdll. Lib # include "skinplusplus. H" # pragma comment (Lib, "skinplusplusdll. lib ")

3. Load the skin library file in the oninitdialog () function of the DLG class and use the skin. The Code is as follows:

// Load the skin database srand (Time (null); int NRand = rand () % 3; Switch (NRand) {Case 0: initializeskin ("xpcorona. SSK "); break; Case 1: initializeskin (" softcrystal. SSK "); break; Case 2: initializeskin (" minimized. SSK "); break ;}

Now that you run your program, you have used three random skin libraries.

Case program: http://download.csdn.net/detail/windows_nt/5347158

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.