summaryrefslogtreecommitdiffstats
path: root/win/tkWin.h
diff options
context:
space:
mode:
authorpatthoyts <patthoyts@users.sourceforge.net>2007-12-10 12:10:09 (GMT)
committerpatthoyts <patthoyts@users.sourceforge.net>2007-12-10 12:10:09 (GMT)
commit7286a3c852accb1dab02058ed762a80d970ec7d7 (patch)
tree71460b05c6e05a94a7d8fcfcde08dee0d8ff0576 /win/tkWin.h
parent07d529beffc9cd3f7e50d532f77dd47ca2bd6234 (diff)
downloadtk-7286a3c852accb1dab02058ed762a80d970ec7d7.zip
tk-7286a3c852accb1dab02058ed762a80d970ec7d7.tar.gz
tk-7286a3c852accb1dab02058ed762a80d970ec7d7.tar.bz2
We must specify the lowest Windows version we
intend to support. In particular the SystemParametersInfo API doesn't like to receive structures that are larger than it expects which affects the font assignements. Set to Win98 support. Handle failure to read the system parameters. This causes ttk/fonts.tcl to set any missing named fonts.
Diffstat (limited to 'win/tkWin.h')
-rw-r--r--win/tkWin.h17
1 files changed, 16 insertions, 1 deletions
diff --git a/win/tkWin.h b/win/tkWin.h
index 08d6d64..bd1c931 100644
--- a/win/tkWin.h
+++ b/win/tkWin.h
@@ -9,12 +9,27 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkWin.h,v 1.13 2005/01/16 00:23:11 chengyemao Exp $
+ * RCS: @(#) $Id: tkWin.h,v 1.14 2007/12/10 12:10:09 patthoyts Exp $
*/
#ifndef _TKWIN
#define _TKWIN
+/*
+ * We must specify the lower version we intend to support. In particular
+ * the SystemParametersInfo API doesn't like to receive structures that
+ * are larger than it expects which affects the font assignements.
+ *
+ * WINVER = 0x0410 means Windows 98 and above
+ */
+
+#ifndef WINVER
+#define WINVER 0x0410
+#endif
+#ifndef _WIN32_WINDOWS
+#define _WIN32_WINDOWS 0x0410
+#endif
+
#ifndef _TK
#include <tk.h>
#endif