CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    May 1999
    Location
    Antwerp, Belgium
    Posts
    136

    CFileDialog with custom caption

    Hi,

    I want to change the caption of a CFileDialog. I've tried to call SetWindowText in the OnInitDialog method of my derived class. But it doesn't work.

    Is there anyone who can help me out ?


  2. #2
    Join Date
    Apr 1999
    Location
    Germany
    Posts
    418

    Re: CFileDialog with custom caption

    Hi Frankie,

    you can set a title by using the field lpstrTitle of the m_ofn data member. It's an LPCSTR.

    HTH

    Martin

  3. #3
    Join Date
    May 1999
    Location
    Antwerp, Belgium
    Posts
    136

    Re: CFileDialog with custom caption

    thanks a lot !


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