diff options
author | hobbs <hobbs> | 2007-12-05 19:18:08 (GMT) |
---|---|---|
committer | hobbs <hobbs> | 2007-12-05 19:18:08 (GMT) |
commit | a05cae50c0a6c2f7e000833763210c1835d9d127 (patch) | |
tree | d6987c498f41a1e9e755b3e5031da0856ec5decb /win/tkWinX.c | |
parent | 1fc7c9b35eee3280cb516dcd7b12d876948e94fe (diff) | |
download | tk-a05cae50c0a6c2f7e000833763210c1835d9d127.zip tk-a05cae50c0a6c2f7e000833763210c1835d9d127.tar.gz tk-a05cae50c0a6c2f7e000833763210c1835d9d127.tar.bz2 |
* win/tkWinInt.h: remove CS_CLASSDC (not recommended for any apps now)
* win/tkWinX.c: and simplify WNDCLASS to one style.
* win/tkWinWm.c: Reduce wrapper update for exStyle to toolwindow
change only and set WS_EX_LAYERED as sticky (once set on a window,
do not remove it) to reduce alpha transition flicker.
Diffstat (limited to 'win/tkWinX.c')
-rw-r--r-- | win/tkWinX.c | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/win/tkWinX.c b/win/tkWinX.c index 28bfda3..d577466 100644 --- a/win/tkWinX.c +++ b/win/tkWinX.c @@ -10,7 +10,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkWinX.c,v 1.25.2.8 2006/08/30 21:53:47 hobbs Exp $ + * RCS: @(#) $Id: tkWinX.c,v 1.25.2.9 2007/12/05 19:18:09 hobbs Exp $ */ #include "tkWinInt.h" @@ -258,21 +258,7 @@ TkWinXInit(hInstance) tkWinProcs = &asciiProcs; } - /* - * When threads are enabled, we cannot use CLASSDC because - * threads will then write into the same device context. - * - * This is a hack; we should add a subsystem that manages - * device context on a per-thread basis. See also tkWinWm.c, - * which also initializes a WNDCLASS structure. - */ - -#ifdef TCL_THREADS childClass.style = CS_HREDRAW | CS_VREDRAW; -#else - childClass.style = CS_HREDRAW | CS_VREDRAW | CS_CLASSDC; -#endif - childClass.cbClsExtra = 0; childClass.cbWndExtra = 0; childClass.hInstance = hInstance; |