Use Windows XP-style dialog

zhaozj2021-02-16  44

Use Windows XP-style dialog box ̣

1. Insert the resource, select "Custom", and enter "24" as the inner shape of the resource.

2, copy the following XML script to the resource editor.

Test Application

You can replace "Test.exe" and "Test Application" in the script to the name you want, which has no impact on the program.

3, set the resource ID to 1

4. Add the initcommonControls () statement in WinMain () (if you use the MFC, please add it in Capplication :: InitInstance (),

Don't forget to include the header file command.h "

5, set up the project, in the link option, in the Object / Library Modules edit box, fill in "ComctL32.Lib"

6. This is your program already has a beautiful Windows XP dialog.

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

New Post(0)