]> git.saurik.com Git - wxWidgets.git/blame - docs/msw/winxp.txt
Allow to customize wxGrid column auto-sizing.
[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 13include "wx/msw/wx.rc" in your application's resource file and you get
469c8026
VZ
14XP look automatically. Notice that MSVC 2005 and later embed manifest in the
15executables it produces and wxWidgets doesn't use its own manifest when using
16this compiler. And if you don't want to use wxWidgets manifest with another
17compiler you may define wxUSE_NO_MANIFEST as 1 prior to including wx/msw/wx.rc.
68c7f44c 18
469c8026
VZ
19
20Finally, if all else fails you may always use a manifest manually. For this you
21need to create your own manifest file and put it in a file called
22"yourapp.exe.manifest" in the same directory where "yourapp.exe" resides.
23Alternatively, you can include the manifest in your applications resource
24section. Please see the MSDN documentation at
68c7f44c 25
19378461 26http://msdn.microsoft.com/en-us/library/windows/desktop/bb773175
68c7f44c
VZ
27
28for more details.
29
68c7f44c
VZ
30Here is the example manifest which you can put into controls.exe.manifest
31file to test theme support using the controls sample:
32
33--- cut here ---
34<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
35<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
36<assemblyIdentity
37 version="0.64.1.0"
38 processorArchitecture="x86"
39 name="Controls"
40 type="win32"
41/>
fc2171bd 42<description>Controls: wxWidgets sample application</description>
68c7f44c
VZ
43<dependency>
44 <dependentAssembly>
45 <assemblyIdentity
46 type="win32"
47 name="Microsoft.Windows.Common-Controls"
48 version="6.0.0.0"
49 processorArchitecture="X86"
50 publicKeyToken="6595b64144ccf1df"
51 language="*"
52 />
53 </dependentAssembly>
54</dependency>
55</assembly>
56--- cut here ---