EVT_ERASE_BACKGROUND,
wxEraseEvent::GetDC()->GetSize() and "no way to retrieve the size of
generic DC" [wxMSW 2.7.0]
Volker Bartheld
dr_versaeg at freenet.de
Tue Sep 26 10:41:31 PDT 2006
Hi Vadim!
>VB> I use the EVT_ERASE_BACKGROUND to draw a custom background (a tiled
>VB> wxBitmap, see below [1]) for my dialog. With wxMSW2.6.3, this worked
>VB> fine, now I get the "no way to retrieve the size of generic DC"
>VB> assertion in the DEBUG build.
> It's a bug in wx, thanks for reporting it. For now you should use
>wxWindow::GetClientAreaRect() instead of wxDC::GetSize() but I'll fix the
>latter in the cvs.
Oh! Cool. Thanks for the info and the workaround.
Cheers,
Volker
__
Mail replies to/an V B A R T H E L D at G M X dot D E
More information about the wx-users
mailing list