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.
Printable View
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.
Try the API DestroyWindow(HWND hWnd)
I hope it help
Marc
Industrial Software Developer
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
Try sending (or posting) a WM_QUIT message to it.
Try sending a WM_CLOSE to the window to detroy it
and posting a WM_QUIT message to the application to kill it
Sally
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
Thanx for the help!