summaryrefslogtreecommitdiff
path: root/lib/Thumbnail
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Thumbnail')
-rw-r--r--lib/Thumbnail/thumbnail.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Thumbnail/thumbnail.cpp b/lib/Thumbnail/thumbnail.cpp
index b8d00c38..c3d22cbd 100644
--- a/lib/Thumbnail/thumbnail.cpp
+++ b/lib/Thumbnail/thumbnail.cpp
@@ -5,9 +5,10 @@
// **************************************************************************
#include "thumbnail.h"
+#include <string>
#define WIN32_LEAN_AND_MEAN
-#include "windows.h"
+#include <zen/win.h>
#define STRICT_TYPED_ITEMIDS //better type safety for IDLists
#include <Shlobj.h>
@@ -16,12 +17,12 @@
#include <CommonControls.h>
#include <zen/com_ptr.h>
#include <zen/string_tools.h>
-#include <string>
#include <zen/scope_guard.h>
using namespace zen;
+
thumb::HICON thumb::getThumbnail(const wchar_t* filename, int requestedSize) //return 0 on failure, caller takes ownership!
{
const std::wstring filenameStr(filename);
bgstack15