mysterious behavior of wxDC in my program

Christopher Bruno cbruno.linux at gmail.com
Mon May 26 01:30:01 PDT 2008


Yes, GetImage returns a wxBitmap &. Same problem when I change it to
wxPaintDC.
just the bitmaps disappear, all other dc drawings are still there. Could
this be a stack overflow problem?

On Mon, May 26, 2008 at 3:17 AM, Robert Roebling <robert at roebling.de> wrote:

>
> Christopher Bruno wrote:
>
> > Here is what I am doing,
> >
> > for class viewer (the canvas) class:
> >
> > void Viewer:: OnPaint ( wxPaintEvent & event) {
> >
> >       wxBufferedPaintDC dc(this)
> >
> >       std::vector<ImageWrapper>::iterator iter
> >
> >      for(iter =3D images.begin(); iter < images.end(); iter++) {
> >
> >          dc.DrawBitmap((*iter).GetImage(), (*iter).GetX(),
> > (*iter).GetY(), true);
> >     }
> >
> > }
>
> GetImage() returns a const wxBitmap &?
> What happens with just wxPaintDC?
>
>  Robert
>
> _______________________________________________
> wx-users mailing list
> wx-users at lists.wxwidgets.org
> http://lists.wxwidgets.org/mailman/listinfo/wx-users
>



-- =

Chris Bruno
n! Labs
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wx-users/attachments/20080526/f69=
4f27f/attachment.htm


More information about the wx-users mailing list