Mercurial > projects > dwt-win
changeset 189:f804bcfb9e49
don't do the theming stuff for win2k and earlier
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sat, 15 Mar 2008 02:43:59 +0100 |
parents | 03f179597782 |
children | 72ef824d4983 |
files | dwt/internal/win32/OS.d |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/dwt/internal/win32/OS.d Sat Mar 15 00:33:19 2008 +0100 +++ b/dwt/internal/win32/OS.d Sat Mar 15 02:43:59 2008 +0100 @@ -259,7 +259,9 @@ //IsUnicode = !IsWin32s && !IsWin95; /* Load the manifest to force the XP Theme */ - enableVisualStyles(); + if (!OS.IsWinCE && OS.WIN32_VERSION >= OS.VERSION (5, 1)) { + enableVisualStyles(); + } // when to load uxtheme if (!OS.IsWinCE && OS.WIN32_VERSION >= OS.VERSION (5, 1)) {