Jump to content
  • Advertisement
Sign in to follow this  
dev578

Change Captions on Command Buttons

This topic is 4614 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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
Advertisement
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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!