Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

77 lines
1.9 KiB

  1. #if !defined(AFX_NEWFILE_H__97287CE6_9DCB_47D4_920D_23575A63D0B5__INCLUDED_)
  2. #define AFX_NEWFILE_H__97287CE6_9DCB_47D4_920D_23575A63D0B5__INCLUDED_
  3. #if _MSC_VER >= 1000
  4. #pragma once
  5. #endif // _MSC_VER >= 1000
  6. // NewFile.h : header file
  7. //
  8. /////////////////////////////////////////////////////////////////////////////
  9. // CNewFile dialog
  10. /*
  11. class CNewFile : public CPropertyPage
  12. This version doesn't support insert to project file creation. Actually this is intially
  13. desigend support, but time isn't enough to implement that, so just delete relevant edit,
  14. button in the Dlg box. I don't delete the
  15. */
  16. class CNewFile : public CPropertyPage
  17. {
  18. DECLARE_DYNCREATE(CNewFile)
  19. // Construction
  20. const int FILES_NUM;
  21. public:
  22. CNewFile();
  23. CNewFile(CPropertySheet *pcps) ;
  24. ~CNewFile();
  25. // Dialog Data
  26. //{{AFX_DATA(CNewFile)
  27. enum { IDD = IDD_NewFile };
  28. // CButton m_cbEnPrj;
  29. CListCtrl m_clcFileName;
  30. CString m_csFileLoc;
  31. // CString m_csPrjName;
  32. CString m_csNewFile;
  33. //}}AFX_DATA
  34. // Overrides
  35. // ClassWizard generate virtual function overrides
  36. //{{AFX_VIRTUAL(CNewFile)
  37. public:
  38. virtual BOOL OnSetActive();
  39. virtual void OnOK();
  40. protected:
  41. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  42. //}}AFX_VIRTUAL
  43. // Implementation
  44. protected:
  45. // Generated message map functions
  46. //{{AFX_MSG(CNewFile)
  47. afx_msg void OnBrowser();
  48. afx_msg void OnDblclkNewfilesList(NMHDR* pNMHDR, LRESULT* pResult);
  49. virtual BOOL OnInitDialog();
  50. afx_msg void OnChangeNewFilename();
  51. afx_msg void OnClickNewfilesList(NMHDR* pNMHDR, LRESULT* pResult);
  52. //}}AFX_MSG
  53. DECLARE_MESSAGE_MAP()
  54. private:
  55. void SetOkButton();
  56. // BOOL m_bproj;
  57. BOOL CallNewDoc();
  58. CPropertySheet *m_pcps ;
  59. };
  60. //{{AFX_INSERT_LOCATION}}
  61. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  62. #endif // !defined(AFX_NEWFILE_H__97287CE6_9DCB_47D4_920D_23575A63D0B5__INCLUDED_)