Board index » cppbuilder » orphan window
Stefano Agostinelli
![]() CBuilder Developer |
orphan window2008-05-17 12:34:13 AM cppbuilder14 Hello. I developed an application (C++ Builder3) in which the Main window opens a new window with a progress bar to show the progress of a quite long computation. After the computation ends this window is closed through the Hide() or Close() function. Everything seems to work ok, but I noticed that if during the computation the application looses the input focus the progress window is not closed at all! Note that if the application does not loose the input focus the window is closed correctly. Also I've tried debugging the program and discovered that the Close() method is always called (and returns an ok value) but it seems it does not work if the application is defocused! Can someone kindly suggest some solution? Thanks a lot Stefano Agostinelli |