From 6b301ea64ca71777e38611d8c49dd119808b4365 Mon Sep 17 00:00:00 2001 From: Jonas Kümmerlin Date: Fri, 25 Jan 2019 22:06:18 +0100 Subject: remove edit control margins to match up with button we'll owner-draw the button to get rid of the margin --- alf/alflabel.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'alf/alflabel.cpp') diff --git a/alf/alflabel.cpp b/alf/alflabel.cpp index 0a18a54..e7550e4 100644 --- a/alf/alflabel.cpp +++ b/alf/alflabel.cpp @@ -9,8 +9,7 @@ int 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 */ - + 1 /* external padding around edit control */; + + ((LOBYTE(LOWORD(GetVersion())) < 4) ? 2 : 1) /* internal padding in edit control */; } static LRESULT CALLBACK -- cgit v1.2.3