Click to See Complete Forum and Search --> : How to dynamically add the caption for a Dialog


Rose Mary
May 10th, 1999, 04:25 PM
Hello, friends.

I want to dynamically add caption for a Dialog (ex. IDD_DIALOG1). I tried like the following way: SetDlgItemText(IDD_DIALOG1, "abcde");
I expected that the caption will be abcde, But it didn't work. How should I do ?

Thanks.

Paul McKenzie
May 10th, 1999, 04:49 PM
Try CDialog::SetWindowText().

Regards,

Paul McKenzie

Rose Mary
May 10th, 1999, 05:36 PM
Paul, Thanks a lot !
I tried and it works.