Пример #1
0
 public RECT(RECT rcSrc)
 {
     left = rcSrc.left;
     top = rcSrc.top;
     right = rcSrc.right;
     bottom = rcSrc.bottom;
 }
Пример #2
0
 public void SetPosition(RECT parentRecantgle, double windowWidth)
 {
     Top = parentRecantgle.top + 25;
     if (parentRecantgle.left + windowWidth + windowWidth - WpfScreen.MostRightX > 0) //If left from the parent isn't 300 space
     {
         Left = parentRecantgle.left - windowWidth;
         _isLeft = false;
     }
     else
     {
         Left = parentRecantgle.left + windowWidth;
         _isLeft = true;
     }
 }
Пример #3
0
 public EqualizerWindow(RECT rect, double width)
 {
     InitializeComponent();
     SetPosition(rect, width);
     Closing += EqualizerWindow_Closing;
 }
Пример #4
0
 internal static extern bool GetWindowRect(IntPtr hWnd, out RECT lpRect);