Skip to main content
gamedev.net
🔒 Locked

Changing static text

Started by Zeke 2 replies 600+ views
Original Post
Zeke
Zeke
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
DeltaVee
DeltaVee
    
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 Die<FONT C
Zeke
Zeke
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
JonStelly
JonStelly
There''s actually a SetWindowText() function that you can use also.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.