| 42 HWND parent = ui_container_get_parent(container); |
42 HWND parent = ui_container_get_parent(container); |
| 43 UiLayout layout = UI_ARGS2LAYOUT(args); |
43 UiLayout layout = UI_ARGS2LAYOUT(args); |
| 44 |
44 |
| 45 int width = args->width >= 0 ? args->width : 100; |
45 int width = args->width >= 0 ? args->width : 100; |
| 46 |
46 |
| 47 HWND hwnd = CreateWindow( |
47 HWND hwnd = CreateWindowEx( |
| |
48 WS_EX_CLIENTEDGE, |
| 48 "EDIT", |
49 "EDIT", |
| 49 "", |
50 "", |
| 50 WS_VISIBLE | WS_CHILD | WS_BORDER | ES_LEFT | ES_AUTOHSCROLL, |
51 WS_VISIBLE | WS_CHILD | ES_LEFT | ES_AUTOHSCROLL, |
| 51 0, 0, width, 25, |
52 0, 0, width, 25, |
| 52 parent, |
53 parent, |
| 53 (HMENU)0, |
54 (HMENU)0, |
| 54 hInstance, |
55 hInstance, |
| 55 NULL); |
56 NULL); |