1. Win32Lib help, please
- Posted by isaac <isaaca at MINDSPRING.COM> Jun 12, 1998
- 543 views
I used loadWindow() to open a secondary window, but when I closed it(the secondary), it closed the main window and ended my program. So, I tried WinMain() and it worked perfectly -- or seemed to. I discovered that every time I ran it, the program never really shut down; if I hit ctrl-alt-del(in win95), exw was listed in the task list. I added onUnload() routines with abort(0), which cleared up the residual problem, but then the program closed when I closed the secondary window, although not when I closed the main, so I suppose by creating it under WinMain() named I the secondary window as the functioning window. If so, is there a way to redeclare this? (WinMain(mainwindow) causes an error). BTW I also tried putting an abort(0) at the end of the program as well as consecutive abort(0)'s in the onUnload routine. a thousand TIA isaac
2. Re: Win32Lib help, please
- Posted by "Cuny, David" <David.Cuny at DSS.CA.GOV> Jun 12, 1998
- 555 views
Issac wrote about multiple windows in Win32Lib: > I discovered that every time I ran it, the program > never really shut down; if I hit ctrl-alt-del(in win95), > exw was listed in the task list. Despite some people's occasional success, Win32Lib still does *not* handle multiple windows, primarily for the reason that you have cited. In general, the unloadWindow() function should not be used. Instead, hideWindow() needs to be called. None of the windows should be destroyed until the application is closed. The problem, of course, is that the window is destroyed when you click the close button on the frame. I need to trap that behavior, and replace it with hiding the window. I hope to have Win32Lib reloaded on my machine some time this weekend (I'm slowly recovering from losing my hard drive), and I'll start working on the multiple window issues, along with the modal problems. Thanks! -- David Cuny