Skip to content
This repository has been archived by the owner on Jan 3, 2018. It is now read-only.

Commit

Permalink
Force Windows XP drop, focus on Windows 7 APIs.
Browse files Browse the repository at this point in the history
  • Loading branch information
RainbowDashDC committed Oct 18, 2014
1 parent 569d9e4 commit eea7b81
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 29 deletions.
29 changes: 7 additions & 22 deletions targetver.h
@@ -1,24 +1,9 @@
#pragma once

// Die folgenden Makros definieren die mindestens erforderliche Plattform. Die mindestens erforderliche Plattform
// ist die früheste Windows-, Internet Explorer-Version usw., die über die erforderlichen Features zur Ausführung
// Ihrer Anwendung verfügt. Die Makros aktivieren alle Funktionen, die auf den Plattformversionen bis
// einschließlich der angegebenen Version verfügbar sind.
/** Windows Constants **/
#define WINVER 0x0601 // Windows 7
#define _WIN32_WINNT 0x0601 // Windows 7
#define _WIN32_WINDOWS 0x0601 // Windows 7
#define _WIN32_IE 0x0900 // Internet Explorer 9

// Ändern Sie folgende Definitionen für Plattformen, die älter als die unten angegebenen sind.
// Unter MSDN finden Sie die neuesten Informationen über die entsprechenden Werte für die unterschiedlichen Plattformen.
#ifndef WINVER // Gibt an, dass Windows Vista die mindestens erforderliche Plattform ist.
#define WINVER 0x0600 // Ändern Sie den entsprechenden Wert, um auf andere Versionen von Windows abzuzielen.
#endif

#ifndef _WIN32_WINNT // Gibt an, dass Windows Vista die mindestens erforderliche Plattform ist.
#define _WIN32_WINNT 0x0600 // Ändern Sie den entsprechenden Wert, um auf andere Versionen von Windows abzuzielen.
#endif

#ifndef _WIN32_WINDOWS // Gibt an, dass Windows 98 die mindestens erforderliche Plattform ist.
#define _WIN32_WINDOWS 0x0410 // Ändern Sie den entsprechenden Wert, um auf mindestens Windows Me abzuzielen.
#endif

#ifndef _WIN32_IE // Gibt an, dass Internet Explorer 7.0 die mindestens erforderliche Plattform ist.
#define _WIN32_IE 0x0700 // Ändern Sie den entsprechenden Wert, um auf andere Versionen von IE abzuzielen.
#endif
// NTDDI_VERSION
#define NTDDI_VERSION 0x06010000
9 changes: 4 additions & 5 deletions wb.h
Expand Up @@ -39,10 +39,9 @@
// Define constants for recent Windows controls. For WINVER constants, See
// http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winprog/winprog/using_the_windows_headers.asp

#ifdef __GNUC__ // For GCC
# define WINVER 0x0501 // Internet Explorer 5.01
# define _WIN32_IE WINVER
#endif
// Include targetver.h
// Includes WINVER constans and NT, etc.
#include "targetver.h"

#ifdef _MSC_VER // For MSVC (Rick)
# if _MSC_VER < 1300
Expand Down Expand Up @@ -106,7 +105,7 @@

// Strings

#define RICHEDITCONTROL TEXT("RichEdit20A")
#define RICHEDITCONTROL TEXT("RichEdit41")
#define TAB_PAGE_CLASS TEXT("wbTabPage")
#define WB_EXTENSION TEXT("phpw")

Expand Down
3 changes: 1 addition & 2 deletions wb_winsys.c
Expand Up @@ -87,8 +87,7 @@ BOOL wbInit(void)
// Load the common control DLLs

InitCommonControls();
if(!LoadLibrary(TEXT("RICHED20.DLL"))) // This is version 2.0 of the DLL
LoadLibrary(TEXT("RICHED32.DLL"));
LoadLibrary(TEXT("Msftedit.dll")); // Version 4.1 of RichEdit, use becuase we drop all before XP support anyways.
icex.dwSize = sizeof(icex);
icex.dwICC = ICC_DATE_CLASSES; // Load date and time picker control class
InitCommonControlsEx(&icex);
Expand Down

0 comments on commit eea7b81

Please sign in to comment.