summaryrefslogtreecommitdiff
path: root/platform/windows/gsprint/dllmain.cpp
diff options
context:
space:
mode:
authorMichael Vrhel <michael.vrhel@artifex.com>2015-01-20 11:37:59 -0800
committerMichael Vrhel <michael.vrhel@artifex.com>2015-01-20 11:37:59 -0800
commitf24f164f25b66df32d7e584ba9993c1519386aac (patch)
treea68b42373791f14f8126f48228cac93ef442867b /platform/windows/gsprint/dllmain.cpp
parent90c560641d9b459a658029eefc4cbb02fdbca0b5 (diff)
downloadmupdf-f24f164f25b66df32d7e584ba9993c1519386aac.tar.xz
Rework of gsview printing with addition of new Print control dialog
This adds an additional project (gsprint.vxcproj) which will do the necessary native calls to bring up the custom print dialog for the output device. We can then obtain the settings and make the appropriate page size adjustments in creating our xps content.
Diffstat (limited to 'platform/windows/gsprint/dllmain.cpp')
-rw-r--r--platform/windows/gsprint/dllmain.cpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/platform/windows/gsprint/dllmain.cpp b/platform/windows/gsprint/dllmain.cpp
new file mode 100644
index 00000000..bfaa6519
--- /dev/null
+++ b/platform/windows/gsprint/dllmain.cpp
@@ -0,0 +1,19 @@
+// dllmain.cpp : Defines the entry point for the DLL application.
+#include <windows.h>
+
+BOOL APIENTRY DllMain( HMODULE hModule,
+ DWORD ul_reason_for_call,
+ LPVOID lpReserved
+ )
+{
+ switch (ul_reason_for_call)
+ {
+ case DLL_PROCESS_ATTACH:
+ case DLL_THREAD_ATTACH:
+ case DLL_THREAD_DETACH:
+ case DLL_PROCESS_DETACH:
+ break;
+ }
+ return TRUE;
+}
+