summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorstanton <stanton>1998-08-05 18:20:07 (GMT)
committerstanton <stanton>1998-08-05 18:20:07 (GMT)
commitdc55832efa2a9060428f2e81fefb4e21559e5e95 (patch)
tree974d2475576aa3695c24a9db2a4a245756cd6a83
parent90aa98fef68556c158bf6fc0f31f37067a0f0bc2 (diff)
downloadtk-dc55832efa2a9060428f2e81fefb4e21559e5e95.zip
tk-dc55832efa2a9060428f2e81fefb4e21559e5e95.tar.gz
tk-dc55832efa2a9060428f2e81fefb4e21559e5e95.tar.bz2
Reduced message traffic by setting WS_EX_NOPARENTNOTIFY on TkChild windows.
-rw-r--r--win/tkWinWindow.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/win/tkWinWindow.c b/win/tkWinWindow.c
index dbac589..9f2bcfc 100644
--- a/win/tkWinWindow.c
+++ b/win/tkWinWindow.c
@@ -261,9 +261,9 @@ TkpMakeWindow(winPtr, parent)
* stacking order.
*/
- hwnd = CreateWindow(TK_WIN_CHILD_CLASS_NAME, NULL, style,
- Tk_X(winPtr), Tk_Y(winPtr), Tk_Width(winPtr), Tk_Height(winPtr),
- parentWin, NULL, Tk_GetHINSTANCE(), NULL);
+ hwnd = CreateWindowEx(WS_EX_NOPARENTNOTIFY, TK_WIN_CHILD_CLASS_NAME, NULL,
+ style, Tk_X(winPtr), Tk_Y(winPtr), Tk_Width(winPtr),
+ Tk_Height(winPtr), parentWin, NULL, Tk_GetHINSTANCE(), NULL);
SetWindowPos(hwnd, HWND_TOP, 0, 0, 0, 0,
SWP_NOACTIVATE | SWP_NOMOVE | SWP_NOSIZE);
return Tk_AttachHWND((Tk_Window)winPtr, hwnd);