CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 1999
    Posts
    14

    How to dynamically add the caption for a Dialog

    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.


  2. #2
    Join Date
    Apr 1999
    Posts
    27,449

    Re: How to dynamically add the caption for a Dialog

    Try CDialog::SetWindowText().

    Regards,

    Paul McKenzie


  3. #3
    Join Date
    Apr 1999
    Posts
    14

    Re: How to dynamically add the caption for a Dialog

    Paul, Thanks a lot !
    I tried and it works.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured