You are not logged in. You can browse in the PowerBASIC Community, but you must click Login (top right) before you can post. If this is your first visit, check out the FAQ or Sign Up.
If the file is an image or video, you need to register the extension as such and Windows will handle the thumbnail. Otherwise I believe you need to create an "extension" DLL, which are COM only. Windows queries this extension DLL for the required display data (thumbnail, icon, etc).
I don't know if this is what your are looking for, but you could try my freeware "ZAP Media Lite" there it can do much things with pictures "on the fly" and also create thumbnail contact sheets.
Now if you just want to embed a thumbnail in common dialog save/load then you must hook it (there is an example in the GDImage load/save built-in dialog). And there is also a Borje's example in Poff showing how to hook a common dialog.
Josa Roca's web browser allows this and I also believe Semen has posted some COM code. May not be exactly what you are looking for, but it
is easy to size images to look like thumbnails on a web page.
I think he means he has his own file type and when the user selects thumbnail view he wants his file type to have a thumbnail. So, he will need to create something that gives Explorer the needed data to display a thumbnail of his file.
Sounds kind of interesting if I'm correct in what he wants. There must be some way of telling explorer how to handle your files. I remember back before XP and such to get thumbnails you used to have to do things like setting the registry key for HKEY_CLASSES_ROOT\Paint.Picture\DefaultIcon to be %1, etc. Back then the name may have been bmpfile or something since Paint changed names so much, but something told Explorer that %1 opened the file and returned contents to display as an icon.
As far as I can interprete this, you want to force the user to see thumbnails instead of, for instance, details (filename, filedate etc). Imo it's the user who should decide how he wants to open his explorer views. The View-menu is the standard tool for this kind of user action.
No, no, no...
I dont want to force anyone, i just want the user to be able to see the thumbnails IF he selects to view thumnails.
No files can display thumbnails if user uses details view.
Michael... i dont understand your suggestion, perhaps you didnt understand the question... IDK... ill re read it many times. I dont have any access to any code and i will not have any programs running, all i have is a File with my own extension, and i would like to display a thumbnail in the explorer when user selects Thumbnail view.
Assuming you are using a listview control (which is what Explorer uses), you can specify the icon for each row of the control; and you can get the icon from any executable program which has one.
(I forget which WinApi call that is, but I think it's one of the "SHxxxx" fucntions in SHLWAPI.DLL).
As far as I can interprete this, you want to force the user to see thumbnails instead of, for instance, details (filename, filedate etc). Imo it's the user who should decide how he wants to open his explorer views. The View-menu is the standard tool for this kind of user action.
We process personal data about users of our site, through the use of cookies and other technologies, to deliver our services, and to analyze site activity. For additional details, refer to our Privacy Policy.
By clicking "I AGREE" below, you agree to our Privacy Policy and our personal data processing and cookie practices as described therein. You also acknowledge that this forum may be hosted outside your country and you consent to the collection, storage, and processing of your data in the country where this forum is hosted.
Leave a comment: