OPEN.H
上传用户:bangxh
上传日期:2007-01-31
资源大小:42235k
文件大小:2k
源码类别:

Windows编程

开发平台:

Visual C++

  1. BOOL bDoOpenDlg ;
  2. OPENFILENAME ofn ;
  3. #define MAXBUF 300
  4. #define MAXFILTERS     10
  5. #define MAXCUSTFILTER  MAXBUF
  6. #define FILENAMESIZE   MAXBUF
  7. #define FILETITLESIZE  MAXBUF
  8. #define DLGTITLESIZE   MAXBUF
  9. #define INITDIRSIZE    MAXBUF
  10. #define DEFEXTSIZE     40
  11. #define TEMPNAMESIZE   30
  12. BOOL APIENTRY OpenFunc(HWND, UINT, UINT, LONG) ;
  13. void FillOpenDlg(HWND, LPOPENFILENAME) ;
  14. void InitOpenStruct(HWND, LPOPENFILENAME) ;
  15. void GetOpenDlg(HWND, LPOPENFILENAME) ;
  16. void InitFilterString(void) ;
  17. void InitCustFilterString(void) ;
  18. TCHAR szFileTitle[FILETITLESIZE]  ;
  19. TCHAR szDlgTitle[DLGTITLESIZE]    ;
  20. TCHAR szFileName[FILENAMESIZE]    ;
  21. TCHAR szInitialDir[INITDIRSIZE]   ;
  22. TCHAR szDefExt[DEFEXTSIZE]        ;
  23. TCHAR szTempName[TEMPNAMESIZE]    ;
  24. TCHAR szFilterInits[MAXFILTERS][30] ;
  25. TCHAR szFilterString[MAXBUF] ;
  26. LPTSTR lpszFilterString ;
  27. TCHAR  szCustFiltInits[3][30] ;
  28. TCHAR  szCustFilterString[MAXBUF] ;
  29. LPTSTR lpszCustFilterString ;
  30. DWORD dwFlags ;
  31. void DoOpenDialog(HWND) ;
  32. #define ID_FILTERO                   400
  33. #define ID_CUSTFILTO                 401
  34. #define ID_MAXCUSTFILTO              402
  35. #define ID_FILTINDEXO                403
  36. #define ID_SZFILEO                   404
  37. #define ID_MAXSZFILEO                405
  38. #define ID_SZFILETITLEO              406
  39. #define ID_MAXSZFILETITLEO           407
  40. #define ID_SZINITDIRO                408
  41. #define ID_SZTITLEO                  409
  42. #define ID_FLAGSO                    410
  43. #define ID_FILEOFFO                  411
  44. #define ID_FILEEXTO                  412
  45. #define ID_SZDEFEXTO                 413
  46. #define ID_ERRORO                    414
  47. #define ID_RETURNO                   415
  48. #define ID_OPENDIALOG                606
  49. #define ID_STRUCTSIZEO               416
  50. #define ID_HWNDOWNERO                417
  51. #define ID_HINSTANCEO                418
  52. #define ID_CUSTDATAO                 419
  53. #define ID_HOOKO                     420
  54. #define ID_TEMPLATEO                 421
  55. #define ID_ADD1O                     422
  56. #define ID_ADD2O                     423
  57. #define ID_CLEAR1O                   424
  58. #define ID_CLEAR2O                   425
  59. #define ID_RESETOPEN                 601
  60. #define ID_NULLSTRUCTO               602
  61. #define ID_USEHINSTO                 607
  62. #define ID_MULTIOPEN                 608
  63. #define ID_FILEPREVIEW               609