xyblack
Joined: 20 Mar 2008
Posts: 19
|
Hello.
Ask a question。I write a DialogBox ProGram。 I want a ProGram from Button display "Xp Theme"。
I by adding a xml files to the resources。
xml files matter
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly
xmlns="urn:schemas-microsoft-com:asm.v1"
manifestVersion="1.0">
<assemblyIdentity
processorArchitecture="x86"
version="5.1.0.0"
type="win32"
name="Me.exe"/>
<dependency>
<dependentAssembly>
<assemblyIdentity
type="win32"
name="Microsoft.Windows.Common-Controls"
version="6.0.0.0"
publicKeyToken="6595b64144ccf1df"
language="*"
processorArchitecture="x86"/>
</dependentAssembly>
</dependency>
</assembly>
but
I add to this document resources, Procedures can not run。
I track the next, the dialog is to create function failed.
Removed from the xml document, is running there will be no problem.
;//////////////////////////rc////////////
#include "resource.h"
#define IDD_DLG1 1000
#define IDC_OK 1001
#define IDC_EXIT 1002
#define IDC_STOP 1003
#define IDC_STC1 1004
#define IDC_EDT1 1005
#define IDC_ICON 1
1 24 DISCARDABLE "XpTheme.xml"
IDC_ICON ICON "3.ICO"
IDD_DLG1 DIALOGEX 6,6,200,121
CAPTION "WindowsProgram"
FONT 9,"宋体",400,0,134
STYLE 0x11CA0800
EXSTYLE 0x00000000
BEGIN
CONTROL "",IDC_EDT1,"Edit",0x50010000,58,42,126,12,0x00000200
CONTROL "Ok",IDC_OK,"Button",0x50010000,2,102,54,16,0x00000000
CONTROL "Exit",IDC_EXIT,"Button",0x50010000,140,102,54,16,0x00000000
CONTROL "Stop",IDC_STOP,"Button",0x50010000,72,102,52,16,0x00000000
CONTROL "size:",IDC_STC1,"Static",0x50000000,8,44,44,10,0x00000000
END
|