I have a simple directx application which displays some pre-transformed geometries and I want the window to not flicker when I resize it and also i want the drawings to not stretch with window size.
I noticed about the stretching problem that, if I reset the device in WM_SIZING then the actual size of the drawing retains. But resetting the device every time I resize the window seems like an expensive operation. Actually I wanted to create some simple GUI using directx, but resizing the window seems to erase the front buffer data and thus flicks.I saw many application with custom gui using opengl allows resizing also WPF application allows resizing. How do I do that?
Also I would like to know, if there is no way I can achieve the effect of real time resizing without flicker and repositioning of drawn elements then how do WPF applications manage to do that?
Also I want to ask that, if you were to design GUI(non game) system using directx and want to implement resizing support as any other application does what would be your option?