src/mess/tools/imgtool/windows/attrdlg.c
| r1396 | r1397 | |
| 3 | 3 | #include <commctrl.h> |
| 4 | 4 | |
| 5 | 5 | #include "attrdlg.h" |
| 6 | | #include "strconv.h" |
| 7 | 6 | #include "wimgres.h" |
| 8 | 7 | #include "opcntrl.h" |
| 8 | #include "winutf8.h" |
| 9 | 9 | |
| 10 | 10 | #define CONTROL_FILTER 10000 |
| 11 | 11 | #define CONTROL_START 10001 |
| r1396 | r1397 | |
| 35 | 35 | DWORD style; |
| 36 | 36 | int i, x, width, selected; |
| 37 | 37 | char buf[256]; |
| 38 | | TCHAR *t_buf; |
| 39 | 38 | |
| 40 | 39 | GetWindowRect(dialog, &dialog_rect); |
| 41 | 40 | |
| r1396 | r1397 | |
| 77 | 76 | { |
| 78 | 77 | // set up label control |
| 79 | 78 | snprintf(buf, sizeof(buf) / sizeof(buf[0]), "%s:", guide[i].display_name); |
| 80 | | t_buf = tstring_from_utf8(buf); |
| 81 | | control = CreateWindow(TEXT("STATIC"), t_buf, WS_CHILD | WS_VISIBLE, |
| 79 | control = win_create_window_ex_utf8(0, "STATIC", buf, WS_CHILD | WS_VISIBLE, |
| 82 | 80 | margin, *y + 2, label_width, control_height, dialog, NULL, NULL, NULL); |
| 83 | | free(t_buf); |
| 84 | 81 | SendMessage(control, WM_SETFONT, (WPARAM) font, 0); |
| 85 | 82 | SetProp(control, owner_prop, (HANDLE) 1); |
| 86 | 83 | |