summaryrefslogtreecommitdiff
path: root/alf/alflabel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'alf/alflabel.cpp')
-rw-r--r--alf/alflabel.cpp4
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));