summaryrefslogtreecommitdiffstats
path: root/win/tkWinDialog.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/tkWinDialog.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/tkWinDialog.c')
-rw-r--r--win/tkWinDialog.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/win/tkWinDialog.c b/win/tkWinDialog.c
index bbf49ca..26d11ed 100644
--- a/win/tkWinDialog.c
+++ b/win/tkWinDialog.c
@@ -790,7 +790,7 @@ Tk_ChooseColorObjCmd(
chooseColor.Flags = CC_RGBINIT | CC_FULLOPEN | CC_ENABLEHOOK;
chooseColor.lCustData = (LPARAM) NULL;
chooseColor.lpfnHook = (LPOFNHOOKPROC) ColorDlgHookProc;
- chooseColor.lpTemplateName = (LPTSTR) interp;
+ chooseColor.lpTemplateName = (LPWSTR) interp;
for (i = 1; i < objc; i += 2) {
int index;
@@ -2491,7 +2491,7 @@ Tk_ChooseDirectoryObjCmd(
if (ofnOpts.titleObj != NULL) {
Tcl_WinUtfToTChar(Tcl_GetString(ofnOpts.titleObj), -1, &titleString);
- bInfo.lpszTitle = (LPTSTR) Tcl_DStringValue(&titleString);
+ bInfo.lpszTitle = (LPWSTR) Tcl_DStringValue(&titleString);
} else {
bInfo.lpszTitle = L"Please choose a directory, then select OK.";
}
@@ -3151,7 +3151,7 @@ HookProc(
Tcl_WinUtfToTChar(Tcl_GetString(phd->titleObj), -1, &title);
if (Tcl_DStringLength(&title) > 0) {
- SetWindowText(hwndDlg, (LPCTSTR) Tcl_DStringValue(&title));
+ SetWindowText(hwndDlg, (LPCWSTR) Tcl_DStringValue(&title));
}
Tcl_DStringFree(&title);
}