atj@mirror.tmc.com (Alex Jenkins) (03/14/90)
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.
edgar@csri.toronto.edu (Edgar LeBel) (03/16/90)
I have done this in 1.2 by calling WinDestroyWindow with the handle of the frame window: WinQueryWindow(hwnd, QW_PARENT, FALSE)