diff options
Diffstat (limited to 'alf/alfedit.cpp')
| -rw-r--r-- | alf/alfedit.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/alf/alfedit.cpp b/alf/alfedit.cpp index 1fde70d..c6570e4 100644 --- a/alf/alfedit.cpp +++ b/alf/alfedit.cpp @@ -26,8 +26,7 @@ ALF__EditSubclassProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam, UINT_P if (!ps->cy) { ps->cy = tm.tmHeight + 2*ALF_Compat_GetSystemMetricsForDpi( SM_CYEDGE, ALF_CentipointsToPixels(GetParent(hwnd), 7200)) - + 4 /* padding internal to the edit control */ - + 2 /* external padding to line up with themed button */; + + 4 /* padding internal to the edit control */; } } @@ -42,8 +41,8 @@ ALF__EditSubclassProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam, UINT_P // SWP_NOCOPYBITS as a bandaid since NT 3.51 doesn't invalidate properly return (LRESULT)DeferWindowPos((HDWP)wParam, hwnd, NULL, - p->left, p->top + 1, - p->right - p->left, p->bottom - p->top - 2, + p->left, p->top, + p->right - p->left, p->bottom - p->top, SWP_NOZORDER|SWP_NOACTIVATE|SWP_NOCOPYBITS); } else if (uMsg == WM_DESTROY) { ALF_Compat_RemoveWindowSubclass(hwnd, ALF__EditSubclassProc, 0); |
