Path: 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 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.