private void UpdateWindowZOrder(IntPtr handle) { //WindowsAPI.SetWindowPos(_parentWindowHndl, 0, 0, 0, 0, 9, WindowsAPI.SWP_NOMOVE | WindowsAPI.SWP_NOSIZE | WindowsAPI.SWP_NOACTIVATE); WindowsAPI.SetWindowPos(handle, _parentWindowHndl.ToInt32(), 0, 0, 0, 9, WindowsAPI.SWP_NOMOVE | WindowsAPI.SWP_NOSIZE | WindowsAPI.SWP_NOACTIVATE); }
private void UpdateLocations(WindowsAPI.WINDOWPOS pos) { _topGlow.SetLocation(pos); _bottomGlow.SetLocation(pos); _rightGlow.SetLocation(pos); _leftGlow.SetLocation(pos); }
internal void SetLocation(WindowsAPI.WINDOWPOS pos) { switch (_side) { case Side.Top: Left = pos.x - SideGlow.SIZE; Top = pos.y - SideGlow.SIZE; break; case Side.Bottom: Left = pos.x - SideGlow.SIZE; Top = pos.y + pos.cy; break; case Side.Left: Left = pos.x - SideGlow.SIZE; Top = pos.y - SideGlow.SIZE; break; case Side.Right: Left = pos.x + pos.cx; Top = pos.y - SideGlow.SIZE; break; } }