diff options
author | hobbs <hobbs> | 2007-12-05 19:18:08 (GMT) |
---|---|---|
committer | hobbs <hobbs> | 2007-12-05 19:18:08 (GMT) |
commit | c00f576fdc606bdd26761450b0a6579ed9dad177 (patch) | |
tree | d6987c498f41a1e9e755b3e5031da0856ec5decb /win/tkWinX.c | |
parent | 50b34a8bb2083f95e08709b51283bf77dfa75bcc (diff) | |
download | tk-c00f576fdc606bdd26761450b0a6579ed9dad177.zip tk-c00f576fdc606bdd26761450b0a6579ed9dad177.tar.gz tk-c00f576fdc606bdd26761450b0a6579ed9dad177.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; |