summaryrefslogtreecommitdiff
path: root/alf/alfcombobox.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'alf/alfcombobox.cpp')
-rw-r--r--alf/alfcombobox.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/alf/alfcombobox.cpp b/alf/alfcombobox.cpp
index bf64cb9..c9da2ed 100644
--- a/alf/alfcombobox.cpp
+++ b/alf/alfcombobox.cpp
@@ -36,7 +36,7 @@ ALF__ComboItemHeight(HWND hwnd)
SelectFont(hDc, oldfont);
}
- if (LOBYTE(LOWORD(GetVersion())) < 4) {
+ if (!ALF_Compat_IsMinWindowsVersion(4, 0)) {
// baseline alignment for NT3.x/Win32s
// ideally, this would only be applied for the ODS_COMOBOXEDIT state,
// but that state is not sent pre-Win95.
@@ -187,7 +187,7 @@ ALF__ComboWindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
LONG y = lpdis->rcItem.top;
LONG x = lpdis->rcItem.left;
- if (LOBYTE(LOWORD(GetVersion())) < 4) {
+ if (!ALF_Compat_IsMinWindowsVersion(4, 0)) {
// baseline alignment for NT3.x/Win32s
// ideally, this would only be applied for the ODS_COMOBOXEDIT state,
// but that state is not sent pre-Win95.
@@ -242,7 +242,7 @@ ALF__ComboWindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
SendMessage(hwndChild, CB_SETEDITSEL, 0, (LPARAM)sel);
DWORD heightOffset = 0;
- if (LOBYTE(LOWORD(GetVersion())) >= 4) {
+ if (ALF_Compat_IsMinWindowsVersion(4, 0)) {
heightOffset = - 2*ALF_Compat_GetSystemMetricsForDpi(
SM_CYEDGE, ALF_CentipointsToPixels(GetParent(hwnd), 7200))
- 2;