|
-
July 15th, 1999, 09:34 AM
#1
Changing static text
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|