Previous 15994 Revisions Next

r1397 Saturday 8th December, 2007 at 19:05:04 UTC by Firewave
Removed unnecessary string conversion
[src/mess/tools/imgtool/windows]attrdlg.c

src/mess/tools/imgtool/windows/attrdlg.c
r1396r1397
33#include <commctrl.h>
44
55#include "attrdlg.h"
6#include "strconv.h"
76#include "wimgres.h"
87#include "opcntrl.h"
8#include "winutf8.h"
99
1010#define CONTROL_FILTER   10000
1111#define CONTROL_START   10001
r1396r1397
3535   DWORD style;
3636   int i, x, width, selected;
3737   char buf[256];
38   TCHAR *t_buf;
3938
4039   GetWindowRect(dialog, &dialog_rect);
4140
r1396r1397
7776      {
7877         // set up label control
7978         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,
8280            margin, *y + 2, label_width, control_height, dialog, NULL, NULL, NULL);
83         free(t_buf);
8481         SendMessage(control, WM_SETFONT, (WPARAM) font, 0);
8582         SetProp(control, owner_prop, (HANDLE) 1);
8683

Previous 15994 Revisions Next


© 1998-2018 The MESS Team