summaryrefslogtreecommitdiff
path: root/alf/alfnotebook.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'alf/alfnotebook.cpp')
-rw-r--r--alf/alfnotebook.cpp13
1 files changed, 2 insertions, 11 deletions
diff --git a/alf/alfnotebook.cpp b/alf/alfnotebook.cpp
index 25e2904..8eaea6b 100644
--- a/alf/alfnotebook.cpp
+++ b/alf/alfnotebook.cpp
@@ -322,7 +322,7 @@ ALF_RegisterNotebookClass(void)
// tab control
HWND
-ALF_AddNotebook(HWND parent, WORD id, UINT x, UINT y)
+ALF_AddNotebook(HWND parent, WORD id, int x, int y)
{
HWND hwndNtbk = CreateWindowEx(WS_EX_CONTROLPARENT,
_alf_notebookClass,
@@ -334,16 +334,7 @@ ALF_AddNotebook(HWND parent, WORD id, UINT x, UINT y)
ALF_HINSTANCE,
NULL);
- ALFWidgetLayoutParams p;
- ZeroMemory(&p, sizeof(p));
- p.hwnd = hwndNtbk;
- p.x = x;
- p.y = y;
- p.width = 0;
- p.height = 0;
- p.flags = ALF_QUERYSIZE | ALF_INHERITFONT;
-
- ALF_AddWidgetEx(parent, &p);
+ ALF_AddWidget(parent, x, y, hwndNtbk, 0, 0, ALF_LAYOUT_SIZE_QUERY | ALF_LAYOUT_INHERITFONT);
return hwndNtbk;
}