Add a form to the project and place a picturebox in there.
Use MoveWindow to streach the dialog.
Use setparent to set the parent of the picturebox in the form to the dialog.
Use movewindow to place the picture box to where you need in the dialog. (Note you can add as many controls and place it in the extended area. A flexgrid, listbox, richtextbox to preview textfiles and docs..)
When ever you get a CDN_SELCHANGE message, you can show the picture preview by loading the picturefile in to the picturebox. Changed filename can be selected by using GetComDlgFileName API.
This the logic. The actual programming is left to interested readers.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.