Exemple #1
0
 public static extern MessageBoxCommandID MessageBox(IntPtr hwnd, string lpText, string lpCaption, MessageBoxFlag uType);
 static extern IntPtr GuiEnv_AddMessageBox(IntPtr guienv, string caption, string text, bool modal, MessageBoxFlag flags, IntPtr parent, int id);
 public GUIWindow AddMessageBox(string caption, string text, bool modal, MessageBoxFlag flags, GUIElement parent, int id)
 {
     IntPtr par = (parent == null ? IntPtr.Zero : parent.Raw);
     return (GUIWindow)NativeElement.GetObject(GuiEnv_AddMessageBox(_raw, caption, text, modal, flags, par, id),
                                               typeof(GUIWindow));
 }
Exemple #4
0
 public GUIWindow AddMessageBox(string caption, string text, bool modal, MessageBoxFlag flags, GUIElement parent, int id)
 {
     return (GUIWindow)NativeElement.GetObject(GuiEnv_AddMessageBox(_raw, caption, text, modal, flags, GetPtr(parent), id),
                                               typeof(GUIWindow));
 }
Exemple #5
0
 public static extern MessageBoxReturn MessageBox(IntPtr hWnd, string text, string caption, MessageBoxFlag type);
Exemple #6
0
 public static extern MessageBoxCommandID MessageBox(IntPtr hwnd, string lpText, string lpCaption, MessageBoxFlag uType);