diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-09-23 18:50:49 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2019-09-23 18:50:49 (GMT) |
commit | 797299a238c72e1add2fd56d9706346a46861e0a (patch) | |
tree | 9a780e02f8f65645a03c60dc8cfe266e73e001f8 /win/tkWinEmbed.c | |
parent | cd10234e38f770e0ccb89282180716b4cbd04fea (diff) | |
download | tk-797299a238c72e1add2fd56d9706346a46861e0a.zip tk-797299a238c72e1add2fd56d9706346a46861e0a.tar.gz tk-797299a238c72e1add2fd56d9706346a46861e0a.tar.bz2 |
Use more explicit *W()-forms of the Win32 API, instead of relying on -DUNICODE
Diffstat (limited to 'win/tkWinEmbed.c')
-rw-r--r-- | win/tkWinEmbed.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/win/tkWinEmbed.c b/win/tkWinEmbed.c index ec2a2c3..1c6ba6c 100644 --- a/win/tkWinEmbed.c +++ b/win/tkWinEmbed.c @@ -160,7 +160,7 @@ void Tk_MapEmbeddedWindow( { if(!(winPtr->flags & TK_ALREADY_DEAD)) { HWND hwnd = (HWND)winPtr->privatePtr; - int state = SendMessage(hwnd, TK_STATE, -1, -1) - 1; + int state = SendMessageW(hwnd, TK_STATE, -1, -1) - 1; if (state < 0 || state > 3) { state = NormalState; @@ -283,9 +283,9 @@ TkpUseWindow( return TCL_ERROR; } - id = SendMessage(hwnd, TK_INFO, TK_CONTAINER_VERIFY, 0); + id = SendMessageW(hwnd, TK_INFO, TK_CONTAINER_VERIFY, 0); if (id == PTR2INT(hwnd)) { - if (!SendMessage(hwnd, TK_INFO, TK_CONTAINER_ISAVAILABLE, 0)) { + if (!SendMessageW(hwnd, TK_INFO, TK_CONTAINER_ISAVAILABLE, 0)) { Tcl_SetObjResult(interp, Tcl_NewStringObj( "The container is already in use", -1)); Tcl_SetErrorCode(interp, "TK", "EMBED", "IN_USE", NULL); @@ -1018,7 +1018,7 @@ TkpClaimFocus( * it. */ { HWND hwnd = GetParent(Tk_GetHWND(topLevelPtr->window)); - SendMessage(hwnd, TK_CLAIMFOCUS, (WPARAM) force, 0); + SendMessageW(hwnd, TK_CLAIMFOCUS, (WPARAM) force, 0); } /* @@ -1096,7 +1096,7 @@ EmbedWindowDeleted( break; } if (containerPtr->parentPtr == winPtr) { - SendMessage(containerPtr->embeddedHWnd, WM_CLOSE, 0, 0); + SendMessageW(containerPtr->embeddedHWnd, WM_CLOSE, 0, 0); containerPtr->parentPtr = NULL; containerPtr->embeddedPtr = NULL; break; |