wxScreenDC & wxDisplay

Vadim Zeitlin vadim at wxwidgets.org
Sun Nov 4 14:46:16 PST 2007


On Sun, 4 Nov 2007 23:39:35 +0100 Steven Van Ingelgem <steven at vaningelgem.be> wrote:

SVI> How do I access a 2nd screen to paint on?

 In exactly the same way as the first one, there is no difference between
them.

SVI> Is there anyone who have done those things before and would be so kind
SVI> to lend me a helping hand (what I want to achieve is to just draw a
SVI> PNG image centered on a black background on all the screens but the
SVI> primary one).

 You do need to use wxDisplay::GetGeometry() and I am pretty sure it's not
a good idea to do what you want (consider the case of a primary screen in
the centre and 2 other displays at its sides -- how exactly are you going
to draw your image?) but this shouldn't prevent you from doing it...

 Regards,
VZ

-- 
TT-Solutions: wxWidgets consultancy and technical support
               http://www.tt-solutions.com/





More information about the wx-users mailing list