ShowWindow() private method

private ShowWindow ( IntPtr hWnd, uint Msg ) : int
hWnd System.IntPtr
Msg uint
return int
示例#1
0
 public void OpenFormWindow(Form form)
 {
     if (form.WindowState == FormWindowState.Minimized && !SharedObjects.IsMonoRunning())
     {
         DisplayUtils.ShowWindow(form.Handle, 9U);
     }
     ((Control)form).Show();
     form.BringToFront();
 }
示例#2
0
        public bool BringWindowToFront(int hWnd)
        {
            bool flag = false;

            if (!SharedObjects.IsMonoRunning())
            {
                DisplayUtils.ShowWindow((IntPtr)hWnd, 9U);
                flag = DisplayUtils.SetForegroundWindow(hWnd);
            }
            return(flag);
        }