How to set video mode when drawing with GDI?

  • Thread starter Thread starter Tomas Machala
  • Start date Start date
T

Tomas Machala

Hi,

I've made an maximized, fullscreen, GDI winform without any borders so it
draws itself over the entire screen what's what I wanted but problem is that
that form has the same resolution as set in system (of course). So is there
a way how to draw that window in some other resolution? Eg. 1024x768.

I could just switch the system resolution before drawing and then set it
back while application terminating but that'd be problematic (rearranged
icons etc.) so I'm looking for some more elegant way. Any idea?

Thanks.
 
I've made an maximized, fullscreen, GDI winform without any borders so it
draws itself over the entire screen what's what I wanted but problem is that
that form has the same resolution as set in system (of course). So is there
a way how to draw that window in some other resolution? Eg. 1024x768.

No. You must use DirectX to achieve that effect. GDI always operates
within the current system video mode.
 
Back
Top