Newbie to VB4 needs help w/ API call to DestroyWindow 
Author Message
 Newbie to VB4 needs help w/ API call to DestroyWindow

[snip]

Quote:
> problem is that after the program terminates, the window (dos box) is
> still open (even though it is "finished"). I send the window handle to
> DestroyWindow, nothing happens, no errors.

It may not be a solution for clients, but for yourself you need to
change the Dos-Prompt's properties so that the "Close on Exit" check-box
is ticked.  This should work

Andrew

 ------------------------------------------------------------
  Andrew Retallack  - Johannesburg, South Africa

 "The views expressed above are figments of your imagination"



Sun, 26 Jul 1998 03:00:00 GMT  
 Newbie to VB4 needs help w/ API call to DestroyWindow
I just got VB4 pro yesterday and am having problems calling winapi32's
DestroyWindow. I copied the Declare statement from the text file into
a module. I use to shell command to execute a DOS function (i.e. pkzip
or arj). I then have the handle to that window (long like -23495). The
problem is that after the program terminates, the window (dos box) is
still open (even though it is "finished"). I send the window handle to
DestroyWindow, nothing happens, no errors.

Any Suggestions,
Thanks,
Rex



Sun, 26 Jul 1998 03:00:00 GMT  
 Newbie to VB4 needs help w/ API call to DestroyWindow

How about sending it a nice close request instead, ie., WM_CLOSE.
Haven't tried it myself though.

George


Quote:

>[snip]
>> problem is that after the program terminates, the window (dos box) is
>> still open (even though it is "finished"). I send the window handle to
>> DestroyWindow, nothing happens, no errors.
>It may not be a solution for clients, but for yourself you need to
>change the Dos-Prompt's properties so that the "Close on Exit" check-box
>is ticked.  This should work
>Andrew
> ------------------------------------------------------------
>  Andrew Retallack  - Johannesburg, South Africa

===============================================================================
 George R. Torralba              xxxxxxxxxxxx                  Batang Cebu!!!
 Seattle, Washington             206.277.0821              MIME mail accepted
===============================================================================


Sun, 26 Jul 1998 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Looking for help on DestroyWindow API call

2. DestroyWindow API call not working?

3. Problem with DestroyWindow API Call

4. DestroyWindow API call not working?

5. VB3 Api Call DestroyWindow

6. Need the Win32 API call for sending a ICMP Echo (Ping) from VB4

7. Help!!! Need help with Menu API calls

8. newbie needs help with calling a DLL

9. HELP: VB4.0/16 API calls and Null Pointers

10. Please help with CreateProcess API call (VB4-32)

11. VB4.0 32/16 APIs call.... HELP

12. Newbie needs help calling DLL

 

 
Powered by phpBB® Forum Software