Re: Using findwindow with findwindowex to close a yes no dialog
- From: Dean Earley <dean.earley@xxxxxxxxxxx>
- Date: Mon, 13 Oct 2008 11:02:54 +0100
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
.
- References:
- Prev by Date: Using findwindow with findwindowex to close a yes no dialog
- Next by Date: Re: Using findwindow with findwindowex to close a yes no dialog
- Previous by thread: Re: Using findwindow with findwindowex to close a yes no dialog
- Next by thread: Re: Using findwindow with findwindowex to close a yes no dialog
- Index(es):