Changing Button Caption Dynamically 
Author Message
 Changing Button Caption Dynamically

Douglas,

How do I specify the control that I want to change the caption of.  I have
three buttons, IDSETUP1, IDSETUP2, IDSETUP3 and a  text control IDOSVER.

Quote:
>Duane,
>     Try CWnd::SetWindowText(...).

>Happy Hunting
>--
>Doug
>Remove .NoSpam for e-mail



SBN Level 2


Tue, 08 Feb 2000 03:00:00 GMT  
 Changing Button Caption Dynamically

Got it.

CDialog::GetDlgItem(IDSETUP1)->SetWindowText(szResult);

Thanks to all who helped,

Duane

Quote:
> Douglas,

>How do I specify the control that I want to change the caption of.  I have
>three buttons, IDSETUP1, IDSETUP2, IDSETUP3 and a  text control IDOSVER.

>>Duane,
>>     Try CWnd::SetWindowText(...).

>>Happy Hunting
>>--
>>Doug
>>Remove .NoSpam for e-mail



>SBN Level 2

>.



Tue, 08 Feb 2000 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. How do I change the caption on an MFC Dialog box (dynamically)

2. Dynamically change caption of a menu

3. Easy question: How do I change the caption of a button

4. changing button captions on the fly

5. Change Next button caption in wizardmode

6. Changing the caption of Apply button in a property sheet

7. change button caption

8. Change ok button caption in a CPropertySheet object

9. HOW to change a button's caption

10. Change the caption of a button

11. CPropertySheet: Change the caption of OK button

12. Change MDI child caption and Close child window button

 

 
Powered by phpBB® Forum Software