DestroyWindow function doesn't work correctly 
Author Message
 DestroyWindow function doesn't work correctly

I use the API function DestroyWindow(hWnd) from VB to close an
app/window. But what it does is only hiding/minimizing the window but
not closing it. What's the problem?

--

Ofer Zelig
PixieSoft

|------------- ((^^^^)) ---------|
|Heaven is free,  ||             |
|Download it   ___\/___          |
|today!                          |
----------------------------------



Fri, 13 Aug 1999 03:00:00 GMT  
 DestroyWindow function doesn't work correctly

Hi Ofer,

Instead of calling DestroyWindow, try posting it the WM_CLOSE message.
I'm not positive, but I think calling DestroyWindow may not allow the
window to properly run its "cleanup" code.

Franky Wong

Quote:

> I use the API function DestroyWindow(hWnd) from VB to close an
> app/window. But what it does is only hiding/minimizing the window but
> not closing it. What's the problem?

> --

> Ofer Zelig
> PixieSoft

> |------------- ((^^^^)) ---------|
> |Heaven is free,  ||             |
> |Download it   ___\/___          |
> |today!                          |
> ----------------------------------



Fri, 13 Aug 1999 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. int function doesn't work correctly.

2. InStr doesn't work correctly in PowerPoint 97

3. on error goto .... doesn't work correctly

4. function doesn't get called correctly

5. Please Help- Can't get date functions to work correctly

6. BUG: VB4(16 bit) - Int and Fix functions don't work correctly

7. fRefreshLinks Doesn't work if path doesn't exist

8. Left function doesn't work

9. FORMAT function doesn't work in Access 97

10. function doesn't work as a method...

11. Format function doesn't work in UserControl

12. Round Function doesn't work!

 

 
Powered by phpBB® Forum Software