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/alfcombobox.cpp | |
| parent | f8ac8f0e75c28047e93c8de627603a6c5a6aa833 (diff) | |
replace GetVersion() calls with helper functions
Diffstat (limited to 'alf/alfcombobox.cpp')
| -rw-r--r-- | alf/alfcombobox.cpp | 6 |
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; |
