summaryrefslogtreecommitdiff
path: root/alf/alfedit.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'alf/alfedit.cpp')
-rw-r--r--alf/alfedit.cpp13
1 files changed, 2 insertions, 11 deletions
diff --git a/alf/alfedit.cpp b/alf/alfedit.cpp
index ac12e38..afd4d08 100644
--- a/alf/alfedit.cpp
+++ b/alf/alfedit.cpp
@@ -52,7 +52,7 @@ ALF__EditSubclassProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam, UINT_P
}
HWND
-ALF_AddEdit(HWND win, WORD id, UINT x, UINT y, const TCHAR *text)
+ALF_AddEdit(HWND win, WORD id, int x, int y, const TCHAR *text)
{
DWORD exstyle;
DWORD style;
@@ -78,16 +78,7 @@ ALF_AddEdit(HWND win, WORD id, UINT x, UINT y, const TCHAR *text)
ALF_Compat_SetWindowSubclass(hwndEdit, ALF__EditSubclassProc, 0, 0);
SetWindowPos(hwndEdit, NULL, 0, 0, 0, 0, SWP_NOZORDER | SWP_NOSIZE | SWP_NOMOVE | SWP_NOACTIVATE | SWP_FRAMECHANGED);
- ALFWidgetLayoutParams p;
- ZeroMemory(&p, sizeof(p));
- p.hwnd = hwndEdit;
- p.x = x;
- p.y = y;
- p.width = 0;
- p.height = 0;
- p.flags = ALF_QUERYSIZE | ALF_APPLYSIZE | ALF_INHERITFONT;
-
- ALF_AddWidgetEx(win, &p);
+ ALF_AddWidget(win, x, y, hwndEdit, 0, 0, ALF_LAYOUT_SIZE_QUERY | ALF_LAYOUT_CUSTOMPOS | ALF_LAYOUT_INHERITFONT);
return hwndEdit;
}