1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>paintlib: PreView.h Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.3.2 -->
<div class="qindex"><a class="qindex" href="index.html">Main Page</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical List</a> | <a class="qindex" href="annotated.html">Compound List</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="functions.html">Compound Members</a></div>
<h1>PreView.h</h1><div class="fragment"><pre>00001 <span class="comment">/////////////////////////////////////////////////////////////////////////////</span>
00002 <span class="comment"></span><span class="comment">// Copyright (C) 1998 by Jorge Lodos</span>
00003 <span class="comment">// All rights reserved</span>
00004 <span class="comment">//</span>
00005 <span class="comment">// Distribute and use freely, except:</span>
00006 <span class="comment">// 1. Don't alter or remove this notice.</span>
00007 <span class="comment">// 2. Mark the changes you made</span>
00008 <span class="comment">//</span>
00009 <span class="comment">// Send bug reports, bug fixes, enhancements, requests, etc. to:</span>
00010 <span class="comment">// lodos@cigb.edu.cu</span><span class="comment"></span>
00011 <span class="comment">/////////////////////////////////////////////////////////////////////////////</span>
00012 <span class="comment"></span>
00013 <span class="preprocessor">#if !defined(AFX_PREVIEWFILEDLG_H__1D054314_0872_11D2_8A46_0000E81D3D27__INCLUDED_)</span>
00014 <span class="preprocessor"></span><span class="preprocessor">#define AFX_PREVIEWFILEDLG_H__1D054314_0872_11D2_8A46_0000E81D3D27__INCLUDED_</span>
00015 <span class="preprocessor"></span>
00016 <span class="preprocessor">#if _MSC_VER >= 1000</span>
00017 <span class="preprocessor"></span><span class="preprocessor">#pragma once</span>
00018 <span class="preprocessor"></span><span class="preprocessor">#endif // _MSC_VER >= 1000</span>
00019 <span class="preprocessor"></span><span class="comment">// PreviewFileDlg.h : header file</span>
00020 <span class="comment">//</span>
00021 <span class="comment"></span>
00022 <span class="comment">/////////////////////////////////////////////////////////////////////////////</span>
00023 <span class="comment"></span><span class="comment">// CPreviewFileDlg dialog</span>
00024
00025 <span class="keyword">class </span>CPreviewFileDlg : <span class="keyword">public</span> CFileDialog
00026 {
00027 DECLARE_DYNAMIC(CPreviewFileDlg)
00028
00029 <span class="keyword">public</span>:
00030 CPreviewFileDlg(BOOL bOpenFileDialog, <span class="comment">// true for FileOpen, false for FileSaveAs</span>
00031 LPCTSTR lpszDefExt = NULL,
00032 LPCTSTR lpszFileName = NULL,
00033 DWORD dwFlags = OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT,
00034 LPCTSTR lpszFilter = NULL,
00035 CWnd* pParentWnd = NULL);
00036
00037 <span class="comment">// Attributes</span>
00038 <span class="keyword">private</span>:
00039 <span class="keywordtype">bool</span> m_bPreview;
00040 CDIBStatic m_DIBStaticCtrl;
00041
00042 <span class="keyword">protected</span>:
00043 <span class="comment">//{{AFX_MSG(CPreviewFileDlg)</span>
00044 <span class="keyword">virtual</span> BOOL OnInitDialog();
00045 afx_msg <span class="keywordtype">void</span> OnPreview();
00046 afx_msg BOOL OnQueryNewPalette();
00047 afx_msg <span class="keywordtype">void</span> OnPaletteChanged(CWnd* pFocusWnd);
00048 afx_msg <span class="keywordtype">void</span> OnSetFocus(CWnd* pOldWnd);
00049 <span class="comment">//}}AFX_MSG</span>
00050 <span class="keyword">virtual</span> <span class="keywordtype">void</span> OnFileNameChange();
00051
00052 <span class="comment">// Implementation</span>
00053 <span class="preprocessor">#ifdef _DEBUG</span>
00054 <span class="preprocessor"></span> <span class="keyword">virtual</span> <span class="keywordtype">void</span> Dump(CDumpContext& dc) <span class="keyword">const</span>;
00055 <span class="preprocessor">#endif</span>
00056 <span class="preprocessor"></span> DECLARE_MESSAGE_MAP()
00057 };
00058
00059 <span class="comment">//{{AFX_INSERT_LOCATION}}</span>
00060 <span class="comment">// Microsoft Developer Studio will insert additional declarations immediately before the previous line.</span>
00061
00062 <span class="preprocessor">#endif // !defined(AFX_PREVIEWFILEDLG_H__1D054314_0872_11D2_8A46_0000E81D3D27__INCLUDED_)</span>
00063 <span class="preprocessor"></span><span class="comment">/*</span>
00064 <span class="comment">/--------------------------------------------------------------------</span>
00065 <span class="comment">|</span>
00066 <span class="comment">| $Log: PreView_8h-source.html,v $
00066 <span class="comment">| Revision 1.2 2004/09/15 15:26:23 uzadow
00066 <span class="comment">| Linux compatibility changes, doc update.
00066 <span class="comment">|</span>
00067 <span class="comment">| Revision 1.7 2001/10/06 15:31:10 uzadow</span>
00068 <span class="comment">| Fixed open file dialog bug.</span>
00069 <span class="comment">|</span>
00070 <span class="comment">| Revision 1.6 2001/09/16 19:03:23 uzadow</span>
00071 <span class="comment">| Added global name prefix PL, changed most filenames.</span>
00072 <span class="comment">|</span>
00073 <span class="comment">| Revision 1.5 2000/03/28 21:05:04 Ulrich von Zadow</span>
00074 <span class="comment">| Added zoom capability.</span>
00075 <span class="comment">|</span>
00076 <span class="comment">| Revision 1.4 2000/01/10 23:53:02 Ulrich von Zadow</span>
00077 <span class="comment">| Changed formatting & removed tabs.</span>
00078 <span class="comment">|</span>
00079 <span class="comment">| Revision 1.3 1999/12/02 17:07:36 Ulrich von Zadow</span>
00080 <span class="comment">| Changes by bdelmee.</span>
00081 <span class="comment">|</span>
00082 <span class="comment">|</span>
00083 <span class="comment">--------------------------------------------------------------------</span>
00084 <span class="comment">*/</span>
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Mon Sep 13 16:16:41 2004 for paintlib by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0 >
</a>1.3.2 </small></address>
</body>
</html>
|