]> git.saurik.com Git - wxWidgets.git/blame - docs/msw/winxp.txt
Updated change log
[wxWidgets.git] / docs / msw / winxp.txt
CommitLineData
fc2171bd 1Microsoft Windows XP Support from wxWidgets
86c529a9 2-------------------------------------------
68c7f44c
VZ
3
4Windows XP introduces the themes (called "visual styles" in the Microsoft
fc2171bd 5documentation) in Windows world. As wxWidgets uses the standard Windows
68c7f44c
VZ
6controls for most of its classes, it can take advantage of it without
7(almost) any effort from your part. The only thing you need to do if you
8want your program to honour the visual style setting of Windows XP is to
9add the manifest file to your program (this is not at all specific to
fc2171bd 10wxWidgets programs but is required for all Windows applications).
68c7f44c 11
fc2171bd 12wxWidgets now includes manifest resources in wx.rc, so it should be enough to
86c529a9
VS
13include "wx/msw/wx.rc" in your application's resource file and you get
14XP look automatically. If it doesn't work, follow the instructions below:
68c7f44c 15
2edb0bde 16For your convenience, below is an example manifest. It should be put in a
68c7f44c
VZ
17file called "yourapp.exe.manifest" and put in the same directory where
18"yourapp.exe" resides. Alternatively, you can include the manifest in your
19applications resource section. Please see the MSDN documentation at
20
21http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnwxp/html/xptheming.asp
22
23for more details.
24
68c7f44c
VZ
25Here is the example manifest which you can put into controls.exe.manifest
26file to test theme support using the controls sample:
27
28--- cut here ---
29<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
30<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
31<assemblyIdentity
32 version="0.64.1.0"
33 processorArchitecture="x86"
34 name="Controls"
35 type="win32"
36/>
fc2171bd 37<description>Controls: wxWidgets sample application</description>
68c7f44c
VZ
38<dependency>
39 <dependentAssembly>
40 <assemblyIdentity
41 type="win32"
42 name="Microsoft.Windows.Common-Controls"
43 version="6.0.0.0"
44 processorArchitecture="X86"
45 publicKeyToken="6595b64144ccf1df"
46 language="*"
47 />
48 </dependentAssembly>
49</dependency>
50</assembly>
51--- cut here ---
52
53
fc2171bd 54There are a few minor problems with theme support in wxWidgets currently
68c7f44c
VZ
55which will be fixed in the next releases:
56
57- the buttons with non-default colours are owner-drawn and thus don't
58 follow the visual style look but always have the default 3D look of
59 the previous Windows versions - don't change the buttons colours if
60 you want them to look nicely under Windows XP
61
62- wxCheckListBox control doesn't have the same appearance as the native
63 checkboxes in Windows XP
64