diff options
| author | Jonas Kümmerlin <jonas@kuemmerlin.eu> | 2020-04-14 17:48:45 +0200 |
|---|---|---|
| committer | Jonas Kümmerlin <jonas@kuemmerlin.eu> | 2020-04-14 17:48:45 +0200 |
| commit | 02ffd45d5cb15b7d025b9a72a21ec1fd32de8c6f (patch) | |
| tree | 70f04cfd220ecee9b261b3ac2bfe2cdf3da0d066 /alf/alflabel.cpp | |
| parent | f8ac8f0e75c28047e93c8de627603a6c5a6aa833 (diff) | |
replace GetVersion() calls with helper functions
Diffstat (limited to 'alf/alflabel.cpp')
| -rw-r--r-- | alf/alflabel.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/alf/alflabel.cpp b/alf/alflabel.cpp index c38ab08..5292a13 100644 --- a/alf/alflabel.cpp +++ b/alf/alflabel.cpp @@ -16,7 +16,7 @@ ALF__LabelTopPadding(HWND hwnd) // see also: alfedit.cpp return ALF_Compat_GetSystemMetricsForDpi( SM_CYEDGE, ALF_CentipointsToPixels(GetParent(hwnd), 7200)) - + ((LOBYTE(LOWORD(GetVersion())) < 4) ? 2 : 1) /* internal padding in edit control */; + + (!ALF_Compat_IsMinWindowsVersion(4, 0) ? 2 : 1) /* internal padding in edit control */; } static int @@ -136,7 +136,7 @@ ALF__LabelWindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam) SetTextColor(hdc, GetSysColor(COLOR_BTNSHADOW)); DrawText(hdc, text, -1, &rc, format); - } else if (GetVersion() >= 0x80000000) { + } else if (ALF_Compat_IsWin9x()) { // Win9x just uses gray text. DSS_DISABLED is broken there, too, // so we can't get the NT look even if we wanted to SetTextColor(hdc, GetSysColor(COLOR_GRAYTEXT)); |
