1 Microsoft Windows XP Support from wxWindows
2 -------------------------------------------
4 Windows XP introduces the themes (called "visual styles" in the Microsoft
5 documentation) in Windows world. As wxWindows uses the standard Windows
6 controls 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
8 want your program to honour the visual style setting of Windows XP is to
9 add the manifest file to your program (this is not at all specific to
10 wxWindows programs but is required for all Windows applications).
12 wxWindows now includes manifest resources in wx.rc, so it should be enough to
13 include "wx/msw/wx.rc" in your application's resource file and you get
14 XP look automatically. If it doesn't work, follow the instructions below:
16 For your convenience, below is an example manifest. It should be put in a
17 file called "yourapp.exe.manifest" and put in the same directory where
18 "yourapp.exe" resides. Alternatively, you can include the manifest in your
19 applications resource section. Please see the MSDN documentation at
21 http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnwxp/html/xptheming.asp
25 Here is the example manifest which you can put into controls.exe.manifest
26 file to test theme support using the controls sample:
29 <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
30 <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
33 processorArchitecture="x86"
37 <description>Controls: wxWindows sample application</description>
42 name="Microsoft.Windows.Common-Controls"
44 processorArchitecture="X86"
45 publicKeyToken="6595b64144ccf1df"
54 There are a few minor problems with theme support in wxWindows currently
55 which will be fixed in the next releases:
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
62 - wxCheckListBox control doesn't have the same appearance as the native
63 checkboxes in Windows XP