GetClientRectangle() public method

public GetClientRectangle ( Rect &clientRectangle ) : void
clientRectangle SIL.Utils.Rect
return void
Ejemplo n.º 1
0
		public void SimpleWindowTest()
		{
			using (var c = new Control())
			{
				var wrappedWindow = new ManagedVwWindow();
				wrappedWindow.Window = (uint)c.Handle;
				Rect temp;
				wrappedWindow.GetClientRectangle(out temp);

				Assert.AreEqual(c.ClientRectangle.Left, temp.left, "Left not the same");
				Assert.AreEqual(c.ClientRectangle.Right, temp.right, "Right not the same");
				Assert.AreEqual(c.ClientRectangle.Top, temp.top, "Top not the same");
				Assert.AreEqual(c.ClientRectangle.Bottom, temp.bottom, "Bottom not the same");
			}
		}
Ejemplo n.º 2
0
		public void NotSettingWindowTest()
		{
			var wrappedWindow = new ManagedVwWindow();
			Rect temp;
			wrappedWindow.GetClientRectangle(out temp);
		}