Changing static text

Started by
2 comments, last by Zeke 22 years, 3 months ago
When i create a dialog box and use static text how can i change the text of it while the program is running? I have a progress control and i just want there to be a couple of words next to the control telling the user what the program is currently doing. Any help is most appreciated. Thanks
Just my thoughts take them as you will. "People spend too much time thinking about the past, whatever else it is, its gone"-Mel Gibson, Man Without A Face
Advertisement
    HWND hwndStaticTextWnd = GetDlgItem(hwndDLG,ID_STATICTEXTID);SendMessage(hwndStaticTextWnd,WM_SETTEXT,0,(LPARAM)"New Text");  



D.V.

Carpe Diem

Edited by - DeltaVee on January 3, 2002 11:15:23 AM
D.V.Carpe Diem
Thanks very much
Just my thoughts take them as you will. "People spend too much time thinking about the past, whatever else it is, its gone"-Mel Gibson, Man Without A Face
There''s actually a SetWindowText() function that you can use also.

This topic is closed to new replies.

Advertisement