change color of string

hi all
i have a string whose textcolor is to be changed as selected by user from colordialog ?

COLORREF m_crColor; //in header file

CString strTitle;


void CMainWnd::OnTimer(UINT_PTR nIDEvent)

void CMainWnd::OnTimeSettings() //menu p0
CColorDialog colorDlg;
if (colorDlg.DoModal() == IDOK)

m_crColor = colorDlg.GetColor();

m_crColor is to be assigned to strTitle ( SDI );

how should i do ?plz give me an idea

i found that m_crColor has the color that i select from the color dialog but i am not able to assign it to the strTitle. when i debugged the program.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!