home *** CD-ROM | disk | FTP | other *** search
/ Windows Graphics Programming / Feng_Yuan_Win32_GDI_DirectX.iso / Samples / include / filedialog.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-05-11  |  1.5 KB  |  30 lines

  1. #pragma once
  2.  
  3. //-----------------------------------------------------------------------------------//
  4. //              Windows Graphics Programming: Win32 GDI and DirectDraw               //
  5. //                             ISBN  0-13-086985-6                                   //
  6. //                                                                                   //
  7. //  Written            by  Yuan, Feng                             www.fengyuan.com   //
  8. //  Copyright (c) 2000 by  Hewlett-Packard Company                www.hp.com         //
  9. //  Published          by  Prentice Hall PTR, Prentice-Hall, Inc. www.phptr.com      //
  10. //                                                                                   //
  11. //  FileName   : filedialog.h                                                         //
  12. //  Description: File common dialog box wrapper                                      //
  13. //  Version    : 1.00.000, May 31, 2000                                              //
  14. //-----------------------------------------------------------------------------------//
  15.  
  16. class KFileDialog
  17. {
  18.     void SetupOFN(OPENFILENAME & ofn, TCHAR Filter[], HWND hWnd, 
  19.         const TCHAR * pExtension, const TCHAR * pClass);
  20.  
  21. public:
  22.     TCHAR    m_FileName[MAX_PATH];
  23.     TCHAR    m_TitleName[MAX_PATH];
  24.     
  25.     // "bmp" "Bitmap Files"
  26.     BOOL GetOpenFileName(HWND hWnd, const TCHAR * pExtension, const TCHAR * pClass);
  27.     BOOL GetSaveFileName(HWND hWnd, const TCHAR * pExtension, const TCHAR * pClass);
  28. };
  29.  
  30.