Main Page | Class Hierarchy | Alphabetical List | Compound List | File List | Compound Members

PreView.h

00001 /////////////////////////////////////////////////////////////////////////////
00002 // Copyright (C) 1998 by Jorge Lodos
00003 // All rights reserved
00004 //
00005 // Distribute and use freely, except:
00006 // 1. Don't alter or remove this notice.
00007 // 2. Mark the changes you made
00008 //
00009 // Send bug reports, bug fixes, enhancements, requests, etc. to:
00010 //    lodos@cigb.edu.cu
00011 /////////////////////////////////////////////////////////////////////////////
00012 
00013 #if !defined(AFX_PREVIEWFILEDLG_H__1D054314_0872_11D2_8A46_0000E81D3D27__INCLUDED_)
00014 #define AFX_PREVIEWFILEDLG_H__1D054314_0872_11D2_8A46_0000E81D3D27__INCLUDED_
00015 
00016 #if _MSC_VER >= 1000
00017 #pragma once
00018 #endif // _MSC_VER >= 1000
00019 // PreviewFileDlg.h : header file
00020 //
00021 
00022 /////////////////////////////////////////////////////////////////////////////
00023 // CPreviewFileDlg dialog
00024 
00025 class CPreviewFileDlg : public CFileDialog
00026 {
00027     DECLARE_DYNAMIC(CPreviewFileDlg)
00028 
00029 public:
00030     CPreviewFileDlg(BOOL bOpenFileDialog, // true for FileOpen, false for FileSaveAs
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     // Attributes
00038 private:
00039     bool m_bPreview;
00040     CDIBStatic m_DIBStaticCtrl;
00041 
00042 protected:
00043     //{{AFX_MSG(CPreviewFileDlg)
00044     virtual BOOL OnInitDialog();
00045     afx_msg void OnPreview();
00046     afx_msg BOOL OnQueryNewPalette();
00047     afx_msg void OnPaletteChanged(CWnd* pFocusWnd);
00048     afx_msg void OnSetFocus(CWnd* pOldWnd);
00049     //}}AFX_MSG
00050     virtual void OnFileNameChange();
00051 
00052     // Implementation
00053 #ifdef _DEBUG
00054     virtual void Dump(CDumpContext& dc) const;
00055 #endif
00056     DECLARE_MESSAGE_MAP()
00057 };
00058 
00059 //{{AFX_INSERT_LOCATION}}
00060 // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
00061 
00062 #endif // !defined(AFX_PREVIEWFILEDLG_H__1D054314_0872_11D2_8A46_0000E81D3D27__INCLUDED_)
00063 /*
00064 /--------------------------------------------------------------------
00065 |
00066 |      $Log: PreView.h,v $
00067 |      Revision 1.7  2001/10/06 15:31:10  uzadow
00068 |      Fixed open file dialog bug.
00069 |
00070 |      Revision 1.6  2001/09/16 19:03:23  uzadow
00071 |      Added global name prefix PL, changed most filenames.
00072 |
00073 |      Revision 1.5  2000/03/28 21:05:04  Ulrich von Zadow
00074 |      Added zoom capability.
00075 |
00076 |      Revision 1.4  2000/01/10 23:53:02  Ulrich von Zadow
00077 |      Changed formatting & removed tabs.
00078 |
00079 |      Revision 1.3  1999/12/02 17:07:36  Ulrich von Zadow
00080 |      Changes by bdelmee.
00081 |
00082 |
00083 --------------------------------------------------------------------
00084 */

Generated on Sun Jun 6 13:42:22 2004 for paintlib by doxygen 1.3.2