🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.os2
Article #1397

Destroying a window in it's own procedure

#1397
From: Alex Jenkins
Date: Tue, 13 Mar 1990 19:05
16 lines
1082 bytes
Hello gentle net.folx!

My question is this:  can one safely call WinDestroyWindow, passing
your window handle in your own WndProc function?  I assume that your HWND
becomes invalid by doing that, so you would have to be careful.  It seems
to work (in 1.1).  I have a MENUITEM that closes the window.

Thanks!
--
Alex T. Jenkins 
Mirror Systems, Cambridge Massachusetts         atj@mirror.TMC.COM
 -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -   -
"There's a prayer each night that I always pray:
 Let the data guide me through every day
 And every pulse and every code --
 Deliver me from the bypass mode"		- W.Z.
Technical Details
Message-ID: <37586@mirror.tmc.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!mailrus!ames!rex!samsung!cs.utexas.edu!wuarchive!husc6!spdcc!mirror!atj

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!mailrus!ames!rex!samsung!cs.utexas.edu!wuarchive!husc6!spdcc!mirror!atj
From: atj@mirror.tmc.com (Alex Jenkins)
Newsgroups: comp.os.os2
Subject: Destroying a window in it's own procedure
Message-ID: <37586@mirror.tmc.com>
Date: 13 Mar 90 19:05:31 GMT
Reply-To: atj@prism.TMC.COM (Alex Jenkins)
Distribution: usa
Organization: Mirror Systems, Cambridge Mass.
Lines: 16