PDA

Click to See Complete Forum and Search --> : post MSg


Zulander1
Jun 16th, 2000, 09:57 AM
Hello i have a Question about API
i what to Force to lcose a Program : i'v tryed this
PostMessage hwndName, WM_CLOSE Or EWX_FORCE, 0&, 0&
and This :
PostMessage hwndName, WM_CLOSE, 0&, 0&

but i can't,
for example : i what to close Notepad and i have the Hwnd, but when
i write something in it and use PostMessage to close the prog
it ask me if what to to Save it i don't what that !!
i whatt close iT
i with out the blablab.... any idea ?

tjhank's

Jun 17th, 2000, 08:31 AM
This may not be the best way, but you can just use the SendKeys and select "no"

Chris
Jun 18th, 2000, 05:29 PM
Hi Megatron, can you show us on using SendKeys to close an external applcaition. becasue all the time I was using the SendMessage API function to do it. :(