How can i set the color from the text in the dialog ? 
Author Message
 How can i set the color from the text in the dialog ?

How can i set the text color from the static text in the dialog ?
I have make this, but the text is always black.
(i need a red text)
 COLORREF    clr;
    clr  = PALETTERGB(GetRValue(255), GetGValue(0), GetBValue(0));
    CDC* dc;
 dc=m_PatternUnsavedPattern.GetDC( );
 COLORREF    Rclr;
 Rclr=dc->SetTextColor (clr);
 dc->SetBkColor(RGB(0, 0, 0));
 dc->UpdateColors( );

 int OK=m_PatternUnsavedPattern.ReleaseDC(dc);
 m_PatternUnsavedPattern.SetWindowText(Text);

 UpdateData(FALSE);
Thanks



Mon, 04 Dec 2000 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. How to set color of static text in dialog

2. set the text color and the background color of a Control Cbutton

3. set text color on static text

4. Need to Set text from Dialog CEdit to Active Window in MDI text app

5. Beginner [Q] Using Canned File Open/Save dialog

6. Canned Dialogs

7. RichTextBox set text to bold/color

8. <conio.h> problems setting text colors

9. Setting the background color of Static Text item and window

10. Setting text color

11. Setting text colors in windows

12. How can i set the text color ?

 

 
Powered by phpBB® Forum Software