changeset 102:40c02ead0a2c

resource manifest
author Frank Benoit <benoit@tionex.de>
date Sun, 10 Feb 2008 03:34:55 +0100
parents 58014b95afb5
children 1a8b8c3d80a4 3926f6c95d6f
files README.txt dwt.manifest dwt.rc
diffstat 3 files changed, 27 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/README.txt	Sat Feb 09 21:29:43 2008 +0100
+++ b/README.txt	Sun Feb 10 03:34:55 2008 +0100
@@ -11,8 +11,8 @@
 
 Import libs:
 ============
-To link everything you need the import libs. 
-They are not included in the source repository, please use this archive 
+To link everything you need the import libs.
+They are not included in the source repository, please use this archive
 
     http://downloads.dsource.org/projects/dwt-linux/dwt-win-libs.zip
 
@@ -28,15 +28,20 @@
 
 Subsystem linker option
 =======================
-For dmd linker 'optlink' there is the option SUBSYSTEM which defines if the executable 
+For dmd linker 'optlink' there is the option SUBSYSTEM which defines if the executable
 shall be a console or windows application and the minimum required windows version (4=win95,5=win2000,6=vista)
 -L/SUBSYSTEM:windows:5
 Without this option, DWT renderes some controls not correctly. Eg. table headers are not shown.
 
+Themes
+======
+To use theming in winxp, there is a manifest necessary. This forces windows to load comctl32.dll
+in version 6 instead of 5.
+Use the resource compiler from visual studio "rc dwt.rc" to get dwt.res
+Link it with -L/RC:dwt.res
+
 
 
 
 
 
-
-
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/dwt.manifest	Sun Feb 10 03:34:55 2008 +0100
@@ -0,0 +1,1 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?><assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"><assemblyIdentity version="1.0.0.0" processorArchitecture="X86" name="SWT.javaw" type="win32"/><description>Standard Widget Toolkit</description><dependency><dependentAssembly><assemblyIdentity type="win32" name="Microsoft.Windows.Common-Controls" version="6.0.0.0" processorArchitecture="X86" publicKeyToken="6595b64144ccf1df" language="*"/></dependentAssembly></dependency></assembly>
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/dwt.rc	Sun Feb 10 03:34:55 2008 +0100
@@ -0,0 +1,16 @@
+/*******************************************************************************
+ * Copyright (c) 2000, 2006 IBM Corporation and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ *     IBM Corporation - initial API and implementation
+ *******************************************************************************/
+
+#include "windows.h"
+
+/* NOTE: PUTTING NEW LINES IN THE MANIFEST FILE CAUSES IT TO FAIL */
+#define MANIFEST_RESOURCE_ID 2
+MANIFEST_RESOURCE_ID RT_MANIFEST "dwt.manifest"