(wx-users) Re: problems with wxMSW 2.8.0

Vadim Zeitlin vadim at wxwindows.org
Thu Jan 25 03:39:05 PST 2007


On Thu, 25 Jan 2007 09:18:42 +0100 (MET) "Jacob (=Jouk) Jansen" <joukj at hrem.nano.tudelft.nl> wrote:

JJ> In the application the bitmap (and also lines, text etc..) are generated by a
JJ> a procedure that is called from another language than c++ (i.e. C or F90)

 Why should it matter?

JJ> By doing so the EVT_PAINT is not activated and the class of "canvas" is not
JJ> known.

 I don't understand this, sorry.

JJ> So you need at least a way to force the EVT_PAINT (how do I do this?).
JJ>  However, I prefer the code as it is (and works in wxGTK) so that I can
JJ> "draw directly" to the window, without manualy calling the event-handler.

 This is wrong if only because your window won't be repainted correctly if
the user covers it with another one or minimizes and then restores it.

JJ> What would be the reason for wxMSW not allowing wxClientDC of a window to
JJ> paint over its children? Is this a limitation of Windows?

 Well, it makes sense to not allow one window overwrite another one,
doesn't it?

 Regards,
VZ

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





More information about the wx-users mailing list