summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--alf/alfcombobox.cpp14
-rw-r--r--alf/alflabel.cpp2
2 files changed, 1 insertions, 15 deletions
diff --git a/alf/alfcombobox.cpp b/alf/alfcombobox.cpp
index 2b24fa7..ca0924d 100644
--- a/alf/alfcombobox.cpp
+++ b/alf/alfcombobox.cpp
@@ -64,13 +64,6 @@ ALF__ComboItemHeight(HWND hwnd)
SelectFont(hDc, oldfont);
- 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.
- height += 2;
- }
-
ReleaseDC(hwnd, hDc);
return height;
}
@@ -211,13 +204,6 @@ ALF__ComboWindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
LONG y = lpdis->rcItem.top;
LONG x = lpdis->rcItem.left;
- 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.
- y += 1;
- }
-
// add left padding like an edit control
TEXTMETRIC tm;
ZeroMemory(&tm, sizeof(tm));
diff --git a/alf/alflabel.cpp b/alf/alflabel.cpp
index 8627378..a5165af 100644
--- a/alf/alflabel.cpp
+++ b/alf/alflabel.cpp
@@ -19,7 +19,7 @@ ALF__LabelTopPadding(HWND hwnd, ALFLabelPriv *priv)
// see also: alfedit.cpp
return ALF_Compat_GetSystemMetricsForDpi(
SM_CYEDGE, (UINT)priv->dpi)
- + (!ALF_Compat_IsMinWindowsVersion(4, 0) ? 2 : 1) /* internal padding in edit control */;
+ + 1 /* internal padding in edit control */;
}
static int