I use the statement RetVal = SendMessage(CurrApp, WM_CLOSE, 0, 0) to close an app. I also want to be able to close the app. using the 'X'. I have code in the QueryUnload event that I only want to run when they click the 'X' to close the app. so I checkto see if the UnloadMode = 0, but when I use the SendMessage API call to close the app., it also is UnloadMode = 0. How can I change this or use another method of closing the app. so that it's not an UnloadMode = 0.
Thanks,
CA
Thanks,
CA