public bool OnConfirmEx(IntPtr title, IntPtr text, DialogButtonFlags flags, IntPtr title0, IntPtr title1, IntPtr title2, IntPtr chkMsg, ref bool chkState, out Int32 retVal) { #if debug OnGeneric("OnConfirmEx"); Console.Error.WriteLine("OnConfirmEx"); #endif retVal = -1; AlertEventHandler eh = (AlertEventHandler)(owner.Events[WebBrowser.AlertEvent]); if (eh != null) { AlertEventArgs e = new AlertEventArgs(); e.Type = DialogType.ConfirmEx; if (title != IntPtr.Zero) { e.Title = Marshal.PtrToStringUni(title); } if (text != IntPtr.Zero) { e.Text = Marshal.PtrToStringUni(text); } if (chkMsg != IntPtr.Zero) { e.CheckMessage = Marshal.PtrToStringUni(chkMsg); } e.CheckState = chkState; eh(this, e); chkState = e.CheckState; return(e.BoolReturn); } return(false); }
public bool OnConfirmEx (IntPtr title, IntPtr text, DialogButtonFlags flags, IntPtr title0, IntPtr title1, IntPtr title2, IntPtr chkMsg, ref bool chkState, out Int32 retVal) { #if debug OnGeneric ("OnConfirmEx"); Console.Error.WriteLine ("OnConfirmEx"); #endif retVal = -1; AlertEventHandler eh = (AlertEventHandler) (owner.Events[WebBrowser.AlertEvent]); if (eh != null) { AlertEventArgs e = new AlertEventArgs (); e.Type = DialogType.ConfirmEx; if (title != IntPtr.Zero) e.Title = Marshal.PtrToStringUni (title); if (text != IntPtr.Zero) e.Text = Marshal.PtrToStringUni (text); if (chkMsg != IntPtr.Zero) e.CheckMessage = Marshal.PtrToStringUni (chkMsg); e.CheckState = chkState; eh (this, e); chkState = e.CheckState; return e.BoolReturn; } return false; }