Page 1 of 1

Transparent wxStaticText

Posted: Mon Aug 02, 2010 7:01 am
by yeyouqun
I am implementing a gauge control with a percentage indicator at the center of the gauge.The indicator is wxStaticText, but the color of background is not the same as gauge's,so the static text windows has a obvious rect.I have tried some methods,such as override the MSWControlColor of wxControl and add the EVT_ERASE_BACKGROUND to the event table, but the problem remains as before.

Who can help me with this, I have lingered this for days.

My platform is windows xp,x64,visual studio 2009.