aseprite/src/desktop
2021-06-11 12:18:45 -03:00
..
linux Fixes for aseprite.desktop file (fix #2295) 2020-03-19 12:13:51 -03:00
win [win] Fill the whole available space for the File Explorer thumbnail 2021-06-08 16:44:58 -03:00
CMakeLists.txt
LICENSE.txt Update README/LICENSE files in src/desktop 2021-06-11 12:18:45 -03:00
README.md Update README/LICENSE files in src/desktop 2021-06-11 12:18:45 -03:00

Desktop Integration

MIT Licensed

Windows

On Windows we have to create a COM server in a DLL to provide thumbnails. The DLL must provide an IThumbnailProvider implementation. Our implementation is in desktop::ThumbnailHandler class, the most interesting member function is ThumbnailHandler::GetThumbnail(), which should return a HBITMAP of the thumbnail.

Registering the DLL

If you distribute your app in an installer remember to use regsvr32.exe to register your DLL which will call your DLL's DllRegisterServer(), a function that must create registry keys to associate your file type extension with your thumbnail handler.

More information in the MSDN.