Change Captions on Command Buttons

Started by
2 comments, last by dev578 18 years, 6 months ago
I have a dialog that has one command button for each letter of the alphabet. The names are IDC_A, IDC_B, etc. When the application boots up, all the captions on the buttons are upper case. I have a radio button that is initially set to upper case. When the user clicks on the lower case radio button, I need to change all the captions to lower case. What would be the best way to do this? I could probably make a CButton for each button, but that would be extremely inefficient, as all I need to change is the captions. Thank you, -Dev578
Advertisement
Is this a windows dialog? Are you using raw Windows API calls for your application?
I'm not sure what language, what API's you're using so I'll just give you a C++ function: SetWindowText().
Oh, sorry, I am using C++ with just the win32 API. So I am working this dialog through the DialogProc.

Edit: Oh, I didn't know you could use SetWindowText for a control. Nice, that should do the job.



-Dev578

This topic is closed to new replies.

Advertisement