W3C home > Mailing lists > Public > www-lib@w3.org > January to March 1999

cleanup in HTEventTerminate

From: Raffaele Sena <raff@nuvomedia.com>
Date: Fri, 5 Feb 1999 13:17:29 -0800 (PST)
To: www-lib <www-lib@w3.org>
Message-ID: <Pine.LNX.4.05.9902051315090.7191-100000@localhost>

In Windows, HTEventTerminate should destroy the window and unregister
the class (in order to be able to correctly re-initialize the library
with a new HTEventInit).


Index: HTEvtLst.c
===================================================================
RCS file: /sources/public/libwww/Library/src/HTEvtLst.c,v
retrieving revision 2.30
diff -b -r2.30 HTEvtLst.c
47a48,49
> PRIVATE ATOM HTclass;
> PRIVATE HINSTANCE HTinstance;
637c639,641
<     if (!RegisterClass(&wc)) {
---
>     HTinstance = wc.hInstance;
>     HTclass = RegisterClass(&wc);
>     if (!HTclass) {
692a697,702
> 
> #ifdef WWW_WIN_ASYNC
>     DestroyWindow(HTSocketWin);
>     UnregisterClass((LPCTSTR)HTclass, HTinstance);
> #endif /* WWW_WIN_ASYNC */
> 

---------------------------------------------
Raffaele Sena
Senior Software Engineer ( "THE" Linux Guy :)
NuvoMedia, Inc.
310 Villa Street
Mt. View, CA 94041
Main:   +1.650.314.1200
Direct: +1.650.314.1255
Fax:    +1.650.314.1201

mailto:raff@nuvomedia.com
http://www.rocket-ebook.com
Received on Friday, 5 February 1999 16:17:32 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 23 April 2007 18:18:28 GMT