private ShowWindow ( |
||
hWnd | ||
cmdShow | short | |
return | int |
/// <summary> /// Show the popup using the provided rectangle as the screen rect. /// </summary> /// <param name="screenRect">Screen rectangle for showing the popup.</param> public virtual void Show(Rectangle screenRect) { // Update the screen position Location = screenRect.Location; ClientSize = screenRect.Size; // Show the window without activating it (i.e. do not take focus) PI.ShowWindow(this.Handle, (short)PI.SW_SHOWNOACTIVATE); }
public void ShowForm(Rectangle screenRect) { // Our initial position should overlay exactly the container SetBounds(screenRect.X, screenRect.Y, screenRect.Width, screenRect.Height); // Show the window without activating it (i.e. do not take focus) PI.ShowWindow(Handle, PI.SW_SHOWNOACTIVATE); }
/// <summary> /// Show the popup using the provided rectangle as the screen rect. /// </summary> /// <param name="screenRect">Screen rectangle for showing the popup.</param> public virtual void Show(Rectangle screenRect) { // Offset by the width/height of the shadow screenRect.X += SHADOW_SIZE; screenRect.Y += SHADOW_SIZE; // Update the screen position Location = screenRect.Location; ClientSize = screenRect.Size; // Show the window without activating it (i.e. do not take focus) PI.ShowWindow(Handle, PI.ShowWindowCommands.SW_SHOWNOACTIVATE); }
/// <summary> /// Show the popup using the provided rectangle as the screen rect. /// </summary> /// <param name="screenRect">Screen rectangle for showing the popup.</param> public virtual void Show(Rectangle screenRect) { // Update the screen position SetBounds(screenRect.X, screenRect.Y, screenRect.Width, screenRect.Height); // If we have a shadow then update it now _shadow?.Show(screenRect); // Show the window without activating it (i.e. do not take focus) PI.ShowWindow(Handle, PI.ShowWindowCommands.SW_SHOWNOACTIVATE); // Use manager to track mouse/keyboard input and to dismiss the window VisualPopupManager.Singleton.StartTracking(this); }
/// <summary> /// Show the window without taking activation. /// </summary> public void ShowWithoutActivate() { // Show the window without activating it (i.e. do not take focus) PI.ShowWindow(this.Handle, (short)PI.SW_SHOWNOACTIVATE); }