I wrote a small dialog box with one static text control and wanted to change the static text on the LMouseDown and the LMouseUp. I made a call to SetDlgItem( IDC_STATIC, CString) but the text didn't change. Do I need to repaint the screen? How do I make the text appear when the Left Mouse buton is down?

A sample of my code is:

void CMyDialog::OnLMouseButtonDown()
{
CString myString("Mouse button is down");
SetDlgItem( IDC_STATIC, myString);

CDialog::OnLMouseButtonDown();
}

Any help is appreciated...

-Dave