diff options
author | hobbs <hobbs> | 2002-12-08 00:46:51 (GMT) |
---|---|---|
committer | hobbs <hobbs> | 2002-12-08 00:46:51 (GMT) |
commit | 9ba6b47ef626dc8248e5fcd5a420d332baeaae53 (patch) | |
tree | 0980b63dd1bf1aabca841a318efcd6eaf6102981 /win/tkWinInit.c | |
parent | df50e6eb7fcee1b7b60c7dc9c0d1968124197b9e (diff) | |
download | tk-9ba6b47ef626dc8248e5fcd5a420d332baeaae53.zip tk-9ba6b47ef626dc8248e5fcd5a420d332baeaae53.tar.gz tk-9ba6b47ef626dc8248e5fcd5a420d332baeaae53.tar.bz2 |
* generic/tkInt.decls: add TkWinSetHINSTANCE decl
* generic/tkIntPlatDecls.h: regen
* generic/tkStubInit.c: regen
* win/tkWinInit.c (TkpInit): While init and cleanup aren't correct
* win/tkWinX.c (TkWinXInit): in DllMain, we had to specify the
* win/tkWin32Dll.c (DllMain): true HINSTANCE or the resources of a
dynamic Tk weren't being loaded correctly. Created a new function
TkWinSetHINSTANCE for this purpose.
Diffstat (limited to 'win/tkWinInit.c')
-rw-r--r-- | win/tkWinInit.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/win/tkWinInit.c b/win/tkWinInit.c index fec211b..1ec2642 100644 --- a/win/tkWinInit.c +++ b/win/tkWinInit.c @@ -9,7 +9,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkWinInit.c,v 1.9 2002/04/12 07:18:49 hobbs Exp $ + * RCS: @(#) $Id: tkWinInit.c,v 1.10 2002/12/08 00:46:51 hobbs Exp $ */ #include "tkWinInt.h" @@ -44,11 +44,10 @@ TkpInit(interp) Tcl_Interp *interp; { /* - * This is necessary for static initialization, and is ok - * otherwise because TkWinXInit flips a static bit to do - * its work just once. + * This is necessary for static initialization, and is ok otherwise + * because TkWinXInit flips a static bit to do its work just once. */ - TkWinXInit(GetModuleHandle(NULL)); + TkWinXInit(Tk_GetHINSTANCE()); return Tcl_Eval(interp, initScript); } |