diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2011-04-03 17:17:09 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2011-04-03 17:17:09 +0200 |
commit | cb1f58e1e204eab0995b57d1a973714f024e70ad (patch) | |
tree | b331f019e3b377839d1256704517fc22b6e2ec53 /apps | |
parent | 119335460c2b50e169de7f3043095fa339bd00a4 (diff) | |
download | mupdf-cb1f58e1e204eab0995b57d1a973714f024e70ad.tar.xz |
xps: Update win32 project files.
Diffstat (limited to 'apps')
-rw-r--r-- | apps/win_main.c | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/apps/win_main.c b/apps/win_main.c index e217dfbb..ae62b62b 100644 --- a/apps/win_main.c +++ b/apps/win_main.c @@ -1,5 +1,6 @@ -#include <fitz.h> -#include <mupdf.h> +#include "fitz.h" +#include "mupdf.h" +#include "muxps.h" #include "pdfapp.h" #ifndef UNICODE @@ -90,7 +91,7 @@ int winfilename(wchar_t *buf, int len) ofn.nMaxFile = len; ofn.lpstrInitialDir = NULL; ofn.lpstrTitle = L"MuPDF: Open PDF file"; - ofn.lpstrFilter = L"PDF Files (*.pdf)\0*.pdf\0All Files\0*\0\0"; + ofn.lpstrFilter = L"Documents (*.pdf;*.xps)\0*.xps;*.pdf\0PDF Files (*.pdf)\0*.pdf\0XPS Files (*.xps)\0*.xps\0All Files\0*\0\0"; ofn.Flags = OFN_FILEMUSTEXIST|OFN_HIDEREADONLY; return GetOpenFileNameW(&ofn); } @@ -157,6 +158,14 @@ dloginfoproc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) SetDlgItemTextW(hwnd, 0x10, wbuf); + if (!xref) + { + SetDlgItemTextA(hwnd, 0x11, "XPS"); + SetDlgItemTextA(hwnd, 0x12, "None"); + SetDlgItemTextA(hwnd, 0x13, "n/a"); + return TRUE; + } + sprintf(buf, "PDF %d.%d", xref->version / 10, xref->version % 10); SetDlgItemTextA(hwnd, 0x11, buf); |