because the last argument is
nCount = Specifies the number of bytes in the string
void CMainWnd::OnTimeSettings()//is a menu item
{
CColorDialog colorDlg;
if (colorDlg.DoModal() == IDOK)
{
m_crColor = colorDlg.GetColor();
hWndDC->SetTextColor(m_crColor);
}
}
why is this not working ? what should i do ?