How to make an own CFileDialog resource?
-
Hi guys I've seen some articles talking about CFileDialog with preview and the CFileDialog resource is bigger than the usual CFileDialog. I read about "template dialog" but I don't know how this stuff is implemented. What is the procedure to do a custom "CFiledialog" resource? Thanks and Happy New Year Doc
-
Hi guys I've seen some articles talking about CFileDialog with preview and the CFileDialog resource is bigger than the usual CFileDialog. I read about "template dialog" but I don't know how this stuff is implemented. What is the procedure to do a custom "CFiledialog" resource? Thanks and Happy New Year Doc
Good that you are thinking about it. Take a look at OPENFILENAME; There is a special field in the structure called lpTemplateName; Here you need to pass in the name of the dialog. This will embed the open dialog inside your dialog. If you want to have a placeholder then put a static control on the dialog with the id stc32. Set this on: OFN_ENABLETEMPLATE If you want to have more then search in MSDN documentation for this keyword. stc32. When you search you will find a topic called "Open and Save As Dialog Boxes". Here you will find all the details. Cool:cool: You also need to start thinking about hooks. If you wanna provide your own preview controls. Tip: lpfnHook member of OPENFILENAME Set this On: OFN_ENABLEHOOK
Love Forgives--Love Gives--Jesus is Love :)
--Owner Drawn --Nothing special --Defeat is temporary but surrender is permanent --Never say quits --Jesus is Lord
-
Good that you are thinking about it. Take a look at OPENFILENAME; There is a special field in the structure called lpTemplateName; Here you need to pass in the name of the dialog. This will embed the open dialog inside your dialog. If you want to have a placeholder then put a static control on the dialog with the id stc32. Set this on: OFN_ENABLETEMPLATE If you want to have more then search in MSDN documentation for this keyword. stc32. When you search you will find a topic called "Open and Save As Dialog Boxes". Here you will find all the details. Cool:cool: You also need to start thinking about hooks. If you wanna provide your own preview controls. Tip: lpfnHook member of OPENFILENAME Set this On: OFN_ENABLEHOOK
Love Forgives--Love Gives--Jesus is Love :)
--Owner Drawn --Nothing special --Defeat is temporary but surrender is permanent --Never say quits --Jesus is Lord
-
doctorpi wrote:
just what I need.
Just what the doctor ordered.;P
Love Forgives--Love Gives--Jesus is Love :)
--Owner Drawn --Nothing special --Defeat is temporary but surrender is permanent --Never say quits --Jesus is Lord