How to change Static Text Control color...???

I have created a dialog based application and have added some static text controls...
I have added CString type member variables for these static text control. Using this i can only change the text content of the control not its colour.

How can i change the text colour of a "Static Text control"..??? (i want to show the text in Red colour.)

I have also created a control type member variable for the Static control... but not getting the exact funtion to call to change the colour of the text...!!! :(

Please Help...

Smilar Topics

  • How to change selected text background color in Textbox ?

    Can anyone please tell me how change selected text background color to green in c# textbox ? By default if I select a text in TextBox the background of selected text will be blue color. ...

  • How do i change the font color of the Static Text Control

    How do i change the font color of the Static Text Control ...

  • How to change the font and size of a static text control

    I am design a GUI, but I want to have different color, size and font of the static text control, how I can adjust them? I want to properities, looks like there not chocie to change it. I am usinh studio C++.net ...

  • Color of Text in Dialog Box Static Text Control

    I'm currently using the following command to change the text of a static text control in a modeless dialog box in the OnInitDialog function.SetDlgItemText(IDC_AMOUNT_DUE, cDialogBoxAmountDue);I was looking for a similiar command to change the color of that text, but haven't been able to find it. The ...

  • Change Static text color

    i have a Static Text control in my dialog , How do i change it from the defult grey to a different color? ...

  • Color for static text control

    I have a dialog with a static text control I erase the dialog background (OnearaseBkgrn()) with some colorBut the text control's background is not erased. I'd like to make it the same as the dialog's background colorHow can I do this ? ...

  • change caption of static text control in runtime

    Is it possible to change caption of static text control in Visual C++ .Net in runtime. For example if user click on button caption on some static text control is changed. I declared CStatic variable named m_Text but dont know what to do next. Static text field has ID: IDC_TEXTvoid CPlotDlg::OnBnClic ...

  • How to chage font of in the static text control on a dialog box?

    How to chage font of in the static text control on a dialog box? ...

  • How do you scroll text in a static text control?

    I want to scroll a message for the right to the left at a set speed inside a static text control. How do I do this?I prefer no MFC, because I dont use it often.Revelate ...

  • How can show a long string in Muliline in the Static Text Control?

    i have an long string which displayed in Static text control but its not fully displayed,i want to display it in muliline if string is too long and not contain any new line or space.please help me for this. ...

  • Static Text Control

    Sorry for all the questions but..How would I change the content of a static text control at runtime (I am using MFC)?I have tryed using:CStatic *Label = IDC_STATIC2;Then usingLabel.SetWindowText("Test");To set the text.. but that does not work just brings up compile errors:Error 1 error C2 ...

  • change static text

    i created an mfc dialog using the wysiwyg designer in vc++i created a static text control aswellmy question is, how can i change the visible text in this control? ...

  • Transparent Static Text control.. changing its text

    I have a window that has bitmap background and I've made static text control backgrounds transparent. Problem is.. when I change text contest on the fly. Previous text stays there because background doesn't draw. How can I fix it?-- YartZ ...

  • Bitmap in Static Text Control

    How can a bitmap from a resource be displayed in a static text control? I tried using a CStatic memberm_pic01.SetBitmap((HBITMAP)Bitmap); but the bitmap doesn't display. I used a 256 color bmp.Any help would be greatly appreciated.Doc ...

  • Static Text Control

    How do you programatically change the caption in a static text control ? ...

  • Problem with '&' character to dispaly in Static Text control.

    i have an static text control when i use to display some text in Static control,use SetWindowTextmy text is "Test & Test Project" but its display like "Test _ Test Project" or "Test Test Project".please tell me how can display the same text as it is whether it is co ...

  • MFC static text control

    I have a static text control in an mfc application. I want to add some text and such to it. Im new to mfc but I thought I add a control variable to change the caption property. When I right click the control and pick add variable I just get a blank menu with no datatypes for control variable of valu ...

  • Creating STATIC TEXT control at RunTime

    Respected allhow i can creat "Static Text" control at runtime on Dialog and then showing data in this created Static Text according to my requirments to dispaly.Waiting for +ve response.FromDavid ...

  • static text control

    I'm trying to display an unsigned long in a static text control and I can't figure out how. Anyone know how to do this?Also, I need to be able to do the same with a listbox. ...

  • Refresh Problem when using static text control as drawing board

    all, I'm having an appln that looks something like MS Paint. Just tat I've implemented it using a windows dialog instead of Doc/View. I've used a Static Text control as the drawing board.Everything works fine except tat if the dialog is minimized, the drawing on the static text disappears. I underst ...

  • Changing attributes of a Static text control

    I want to change the text that appears in a static text control to be font Verdana, point size 30 and white text.I know about the CPaintDC method but it doesn't appear to work can you help.Thanks in advance.P.S. It must be in a static text control rather than writing straight to screen ...

  • Refresh Problem when using static text control

    all, I'm having an appln that looks something like MS Paint. Just tat I've implemented it using a windows dialog instead of Doc/View. I've used a Static Text control as the drawing board.Everything works fine except tat if the dialog is minimized, the drawing on the static text disappears. I underst ...

  • dragging static text control and other controls

    Hi.. just a question..how do u make the static text control or any other controls in the form draggable and resizable???Also how do u make the static text control (box) Background TRANSPARENT?? ...

  • static text control

    I know this is a silly question....How do I make a static text control, or any other control's Font property Bold¿F. T. W. ...

  • Static text control

    I would like to know how to get the Rect structure from a static text control that I have made on my dialog in the resource editorIs it possible to get the Rect stucture at runtime? ...

  • Resizing Static Text control

    I just wanted to know can we increase the size of static text(label we are using in dialog box) at runtime.... like i put text in my static text at run time using SetDlgItemText(), but sometimes when text is big it is not displayed i.e text is displayed according to the size of static text control.. ...

  • Live update of an MFC static text control

    I have a static text control on a dialog resource (InfoPanel.cpp). The static text control is linked to the InfoPanel class by means of its string variable 'theta2'.Im also running an openGL simulation in the 'View' portion of my program (CubeView) and am looking for a way to send output from data i ...

  • Getting Caption Of A Static Text Control In Another Exe

    Help required...I'm running a DIALOG BASED vc++ exe and need to get the caption of a STATIC TEXT CONTROL in another DIALOG BASED vc++ exe. Is there any method by which i can get the caption. ...

  • extended ascii in static text control?

    This may be more of a C++ question than a Visual C++ question, but ... I'm trying to display the lower-case Greek symbol "sigma" in a static text control.m_st.SetWindowText("??????");What is the string literal that will accomplish this? ...