Click to See Complete Forum and Search --> : Limit DirectX window usage


Bobbysl
February 22nd, 2009, 11:45 AM
I've been doing some basic directX. I need to limit the height directX uses of my winodw. Say my window is 600X300 and i want to only show the directX in a box size of 600X200 while keeping my original window size.
Is this possible, or do i need to add some kind of container
Thanks

Mike Harnad
February 24th, 2009, 08:17 AM
You can certainly define a smaller child window to resolve this. However, have you tried using SetViewPort (http://msdn.microsoft.com/en-us/library/bb174469(VS.85).aspx)to define the extents of the area you are rendereing?