Modifying CButton caption

Is there any way to modify the caption of the button on a dialog window when running the program?
ak70Asked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
jhanceConnect With a Mentor Commented:
In your program call:

SetDlgItemText(hwnd, IDC_BUTTONID, "New Name");

This assumes you know the HWND for the button since it's your program.  If not, you'll have to find it with FindWindow().
0
 
jhanceCommented:
Sorry, what I meant to say was that you need to know the hwnd for your dialog windows and the ID of the button in the dialog for IDC_BUTTONID.
0
 
ak70Author Commented:
THANK YOU for your prompt answering!
0
All Courses

From novice to tech pro — start learning today.