summaryrefslogtreecommitdiffstats
path: root/win/tkWinEmbed.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2019-07-30 14:45:38 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2019-07-30 14:45:38 (GMT)
commitb50b9471ff522194c657fe4228da646eaa8e5698 (patch)
tree8d7a6a471a8c67a684b1658c0f26b88b81a796de /win/tkWinEmbed.c
parent0bc5aa8a4426d81a3e4419b0e9b2f6cb3261dff2 (diff)
downloadtk-b50b9471ff522194c657fe4228da646eaa8e5698.zip
tk-b50b9471ff522194c657fe4228da646eaa8e5698.tar.gz
tk-b50b9471ff522194c657fe4228da646eaa8e5698.tar.bz2
Use WCHAR in stead of TCHAR (almost) everywhere, since we now only support compiling Tcl in UNICODE mode anyway.
Diffstat (limited to 'win/tkWinEmbed.c')
-rw-r--r--win/tkWinEmbed.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/win/tkWinEmbed.c b/win/tkWinEmbed.c
index 329fd6e..f33a275 100644
--- a/win/tkWinEmbed.c
+++ b/win/tkWinEmbed.c
@@ -303,10 +303,10 @@ TkpUseWindow(
* order to avoid bug 1096074 in future.
*/
- TCHAR msg[256];
+ WCHAR msg[256];
- wsprintf(msg, TEXT("Unable to get information of window \"%.40hs\". Attach to this\nwindow may have unpredictable results if it is not a valid container.\n\nPress Ok to proceed or Cancel to abort attaching."), string);
- if (IDCANCEL == MessageBox(hwnd, msg, TEXT("Tk Warning"),
+ wsprintf(msg, L"Unable to get information of window \"%.40hs\". Attach to this\nwindow may have unpredictable results if it is not a valid container.\n\nPress Ok to proceed or Cancel to abort attaching.", string);
+ if (IDCANCEL == MessageBox(hwnd, msg, L"Tk Warning",
MB_OKCANCEL | MB_ICONWARNING)) {
Tcl_SetObjResult(interp, Tcl_NewStringObj(
"Operation has been canceled", -1));