Writing text in colors
- Posted by Andy Drummond <kestrelandy at xalt.co.uk> May 27, 2002
- 469 views
I posted a problem with getDC:SaveDC() recently, and was advised to avoid using graphics routines - like, I suspect, setText(). i trued Win32Lib v0.57.6 but that doesn't help and is veerrryyyy sllooowwwww at times or in some routines. wPuts() & wPrintf() are nasty - they leave the rest of the text box with its old text, and use the system default background. I can't seem to get around these - so please can someone advise me what is a basically simple Windows task: I want to write text, over & over again, into the same text box controls, in different foreground OR background color without the resources getting eaten up like they are when I use setWindowBkColor() and setText(). Anyone with a working technique (should be easy!!!) i will buy a beer when I see them! Andy Drummond