Click to See Complete Forum and Search --> : Destroy Window


ravish
May 3rd, 1999, 03:19 PM
How to destroy the window?
I have HWND pointer(by using the FindWindow(), but i cant close the application? or is there a standart way to close an application?
Can anyone help me out please!
Thanx in advance.

May 7th, 1999, 08:40 AM
Try the API DestroyWindow(HWND hWnd)

I hope it help
Marc
Industrial Software Developer

kuijer
May 7th, 1999, 09:10 AM
DestroyWindow( HWND ) only works if the HWND window is created by the same thread which is trying to destroy it. This is probably not the case when you're using FindWindow

BrianOG
May 10th, 1999, 05:17 AM
Try sending (or posting) a WM_QUIT message to it.

sally
May 10th, 1999, 07:44 AM
Try sending a WM_CLOSE to the window to detroy it
and posting a WM_QUIT message to the application to kill it

Sally

Sally
May 10th, 1999, 07:44 AM
Try sending a WM_CLOSE to the window to detroy it
and posting a WM_QUIT message to the application to kill it

Sally

sally
May 10th, 1999, 07:48 AM
Hmmm,

Try sending a WM_CLOSE to the window to detroy it
and posting a WM_QUIT message to the application to kill it

Sally

Sally
May 10th, 1999, 07:48 AM
Hmmm,

Try sending a WM_CLOSE to the window to detroy it
and posting a WM_QUIT message to the application to kill it

Sally

ravish
May 12th, 1999, 01:40 PM
Thanx for the help!