Click here to Skip to main content
15,895,777 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Quick question about the static text labels that you see in the bottom end of the task manager (which tells you the total processes numbers and CPU usage in win7)
To implement this kind of behaviour in win32 do you actually need to destroy and recreate the same handle to the static text to be displayed whit the updated text ?

Using C# and windows forms a textlabel has a specific function to change said label's text, but what's the magic behind this ? Is it actually "destroyed" and recreated again ? Is this the way that we're supposed to make such behaviour ?

inb4 read-only editboxes - if you hover the mouse on those you'll be able to select the text and the cursor changes, sure you could change that control's wndproc function but that would be way too overkill imho
Posted

1 solution

when you create them in the resource editor, change their ID from ID_STATIC

then simply GetDlgItem()->SetWindowText() (or variant of) on them
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900