Click to See Complete Forum and Search --> : CFileDialog with custom caption


Franky Braem
April 28th, 1999, 03:34 AM
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 ?

Martin Speiser
April 28th, 1999, 04:53 AM
Hi Frankie,

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

HTH

Martin

Franky Braem
April 28th, 1999, 05:12 AM
thanks a lot !