How to set video mode when drawing with GDI?

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.
 
C

Christoph Nahr

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top