Archived

This topic is now archived and is closed to further replies.

Zeke

Changing static text

Recommended Posts

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

Share this post


Link to post
Share on other sites
    
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

Share this post


Link to post
Share on other sites