PDA

Click to See Complete Forum and Search --> : Refresh a static control


V(ery) Basic
Oct 11th, 2000, 12:09 PM
Err..

If I put 1000 in a static control and then 5, 5000 shows up. I'd assume this is because I'm not refreshing the static, but I've sent it all the possible messages, and UpdateWindow. Is there a ... Blair smile ... third way ?

Thanks,

God (aka Me)

parksie
Oct 11th, 2000, 12:44 PM
Hmm...I assume you've tried

SendMessage(GetDlgItem(hWnd_Main, IDC_STATIC), WM_SETTEXT, 0, (LPCTSTR)"1000");

?

How are you setting the text?

V(ery) Basic
Oct 13th, 2000, 04:36 AM
I'm using SetWindowText, but I'll try your method,

Thanks,

Me.