CFileDialog in CPropertySheet
-
Is there any way of making a file dialog a member of a property sheet (just like the one in MS VB6)? Plz help! Live long and in prosper johny74656@gmail.com
-
Is there any way of making a file dialog a member of a property sheet (just like the one in MS VB6)? Plz help! Live long and in prosper johny74656@gmail.com
Yes, there is! I've done this on a regular dialog, I don't have much experience with property pages, but I think it will work. Change the id of the dialog that you use for your property page to IDD_FILEOPEN_EX. Delete the OK and Cancel buttons. Select 'Clip Siblings' and 'Clip Children' in the dialog's properties. Create a static control and change it's id to "stc32" (no quotes). In your Resource.h file, delete the definition for stc32. "stc32 is a constant #defined in dlgs.h, so #include dlgs.h in your .rc file. the file dialog should now show up in place of the static control on that dialog. My articles www.stillwaterexpress.com BlackDice
-
Yes, there is! I've done this on a regular dialog, I don't have much experience with property pages, but I think it will work. Change the id of the dialog that you use for your property page to IDD_FILEOPEN_EX. Delete the OK and Cancel buttons. Select 'Clip Siblings' and 'Clip Children' in the dialog's properties. Create a static control and change it's id to "stc32" (no quotes). In your Resource.h file, delete the definition for stc32. "stc32 is a constant #defined in dlgs.h, so #include dlgs.h in your .rc file. the file dialog should now show up in place of the static control on that dialog. My articles www.stillwaterexpress.com BlackDice
Thx, this works! Live long and in prosper johny74656@gmail.com
-
Yes, there is! I've done this on a regular dialog, I don't have much experience with property pages, but I think it will work. Change the id of the dialog that you use for your property page to IDD_FILEOPEN_EX. Delete the OK and Cancel buttons. Select 'Clip Siblings' and 'Clip Children' in the dialog's properties. Create a static control and change it's id to "stc32" (no quotes). In your Resource.h file, delete the definition for stc32. "stc32 is a constant #defined in dlgs.h, so #include dlgs.h in your .rc file. the file dialog should now show up in place of the static control on that dialog. My articles www.stillwaterexpress.com BlackDice
Hi, Is this answer still valid while using Visual Studio 2019 ? The id IDD_FILEOPEN_EX does not exists. Do I need to include another RC file if I include dlgs.h ? Thanks.
I'd rather be phishing!