Sign in to follow this  
dev578

Change Captions on Command Buttons

Recommended Posts

dev578    128
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

Share this post


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

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this