591 |
} |
} |
592 |
|
|
593 |
|
|
|
/* SetDlgItemText replacement with UTF8 support. */ |
|
|
void |
|
|
SetDlgItemText_utf8 (HWND dlg, int id, const char *txt) |
|
|
{ |
|
|
char *utf8_txt; |
|
|
|
|
|
utf8_txt = utf8_to_native (txt); |
|
|
SetDlgItemText (dlg, id, utf8_txt); |
|
|
safe_free (utf8_txt); |
|
|
} |
|
|
|
|
|
/* SetWindowText replacement with UTF8 support. */ |
|
|
void |
|
|
SetWindowText_utf8 (HWND hwnd, const char *txt) |
|
|
{ |
|
|
char *utf8_txt; |
|
|
|
|
|
utf8_txt = utf8_to_native (txt); |
|
|
SetWindowText (hwnd, utf8_txt); |
|
|
safe_free (utf8_txt); |
|
|
} |
|
|
|
|
|
|
|
594 |
void |
void |
595 |
ListBox_AddString_utf8 (HWND lb, const char *txt) |
ListBox_AddString_utf8 (HWND lb, const char *txt) |
596 |
{ |
{ |