I would like to set the area in the window client area that the swapchain presents to. Is that possible, or does Present always stretch to the entire window client area?
For background, I'm moving from DX9 to D3D11 and I'm converting several apps, a couple of which have child windows of the main window used for GDI stuff. I also used GDI directly in the client. In DX9, device->Present allows for setting the target rectangle which was convenient for allowing child windows to share the client area, and I did GDI stuff also to the client. In D3D11, I've tried creating the buffers and resizing them, but they appear to always be stretched to the full client area.
Will I have to, perhaps, do the reverse? I.e., render to a target child window positioned appropriately in the client area, and use GDI directly in the main window client?
I've also looked into using GDI directly with the buffer texture, but there appear to be format restrictions - e.g., I multisample and (apparently) that makes the surface incompatible for GDI device contexts.
Edited by Buckeye, 06 May 2014 - 07:16 PM.