Well, I must have screwed something up so I am rebuilding wxWidgets 3.0.4 using MingW. I have had to cast numerous strings to LPCSTRs. While I might accept that this is a minor problem, I have now encountered a superbly bit of poor programming and I cannot figure out what the following line of code means - that is just what is text?
This line is in Checkbox.cpp line 463 and similarly 483. text is not defined anywhere I can find - and of course, the compiler complains and errors out.
Code: Select all
if ( !::DrawText(hdc, text.t_stlabel.t_str(), label.length(), &rectLabel, fmt | DT_CALCRECT) )
I have also looked for t_stlabel (as in text.t_stlabel) and cannot find it in source or headers. Ack! And help please.