White background for text displayed using CDC::TextOut(...) 
Author Message
 White background for text displayed using CDC::TextOut(...)

SetBkColor to set the background of the dc to the same color of the window
or u can use SetBkMode(TRANSPARENT) so that the background of the text will
be transparent.

Quote:
> I have a modeless dialog on which i used the TextOut command to display
> text. The output text has a white background. If I scroll through the
> window, the text background becomes the same as the Client background. How
> do i enforce the grey client background on the text that i display using
> TextOut.

> Thanks



Tue, 08 Apr 2003 03:00:00 GMT  
 White background for text displayed using CDC::TextOut(...)
I have a modeless dialog on which i used the TextOut command to display
text. The output text has a white background. If I scroll through the
window, the text background becomes the same as the Client background. How
do i enforce the grey client background on the text that i display using
TextOut.

Thanks



Wed, 09 Apr 2003 03:00:00 GMT  
 White background for text displayed using CDC::TextOut(...)


Quote:
> I have a modeless dialog on which i used the TextOut command to display
> text. The output text has a white background. If I scroll through the
> window, the text background becomes the same as the Client background. How
> do i enforce the grey client background on the text that i display using
> TextOut.

pDC->SetBkMode(TRANSPARENT);

Regards,

--
Chris
-----------------------------------------------------------------------

Visit our web site at http://www.skymap.com
Astronomy software written by astronomers, for astronomers



Wed, 09 Apr 2003 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. White background for text displayed using CDC::TextOut(...)

2. White background for text displayed using CDC::TextOut(...)

3. Text Print using CDC::TextOut by ORing

4. CDC::SetTextAlign & CDC::TextOut

5. CDC::TextOut not responding to CDC::SetTextAlign??

6. Using CDC TextOut function with doubles & floats

7. Help please: White background in text mode (Borland Turbo C)

8. Displaying anything but white text on black screen

9. Display text in dialog box with TextOut()

10. squeezing text using textout

11. (MSDOS C) Displaying black text on coloured background in graphics mode

12. Need help on save texts format by Textout to a text file

 

 
Powered by phpBB® Forum Software