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;
[Code]
void CMainWnd::OnTimer(UINT_PTR nIDEvent)
{
......................
hWndDC->TextOut(pt.x,5,strTitle,(char)strlen(strTitle));
.........
}
void CMainWnd::OnTimeSettings() //menu p0
{
CColorDialog colorDlg;
if (colorDlg.DoModal() == IDOK)
{
m_crColor = colorDlg.GetColor();
hWndDC->SetTextColor(m_crColor);
}
}
[/Code]
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.