summaryrefslogtreecommitdiffstats
path: root/win/tkWinEmbed.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2019-09-19 19:24:47 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2019-09-19 19:24:47 (GMT)
commit4801848f58e2c408b9ec56a5d1db5625447da27c (patch)
treeb5200858e09317656ab75d3759e7ceb166d562da /win/tkWinEmbed.c
parent9483e2ad64759b1ee91a32ce91e1a9c89cb626f4 (diff)
downloadtk-4801848f58e2c408b9ec56a5d1db5625447da27c.zip
tk-4801848f58e2c408b9ec56a5d1db5625447da27c.tar.gz
tk-4801848f58e2c408b9ec56a5d1db5625447da27c.tar.bz2
*A() to *W() Win32 API changes, actually the same because Tk is already compiled in UNICODE mode.
Diffstat (limited to 'win/tkWinEmbed.c')
-rw-r--r--win/tkWinEmbed.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/win/tkWinEmbed.c b/win/tkWinEmbed.c
index e22314f..ec2a2c3 100644
--- a/win/tkWinEmbed.c
+++ b/win/tkWinEmbed.c
@@ -305,8 +305,8 @@ TkpUseWindow(
WCHAR msg[256];
- 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",
+ wsprintfW(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 == MessageBoxW(hwnd, msg, L"Tk Warning",
MB_OKCANCEL | MB_ICONWARNING)) {
Tcl_SetObjResult(interp, Tcl_NewStringObj(
"Operation has been canceled", -1));