Re: Using findwindow with findwindowex to close a yes no dialog

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



James wrote:
Ok ive bin trying to do this for hours an hours now this dialog box is a pain in my *** "#32770(dialog)"


the way i have it set up

dim hwnd as long , dwnd as long , swnd as long
hwnd = FindWindow(lpClassName$, lpCaption$)
dwnd = FindWindowEx(hwnd, "#32770", vbNullString, vbNullString)
swnd = SendMessage(dwnd, WM_SYSCOMMAND, SC_CLOSE, NILL)

I don't think you can do that with Yes/No message boxes.
I can't remember exactly why, but not all message box types can be closed this way.

--
Dean Earley (dean.earley@xxxxxxxxxxx)
i-Catcher Development Team

iCode Systems
.


Quantcast