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.

45 lines
1.4 KiB

  1. #ifndef __FileParm_h__
  2. #define __FileParm_h__
  3. #include "FilePane.h"
  4. class CDistributionSheet {
  5. friend class CNmAkWiz;
  6. private:
  7. static BOOL APIENTRY DlgProc( HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam );
  8. static UINT CALLBACK DistroOFNHookProc( HWND hdlg, UINT uiMsg, WPARAM wParam, LPARAM lParam );
  9. static UINT CALLBACK AutoConfOFNHookProc( HWND hdlg, UINT uiMsg, WPARAM wParam, LPARAM lParam );
  10. static CDistributionSheet* ms_pDistributionFileSheet;
  11. static int ms_MaxDistributionFilePathLen;
  12. static TCHAR ms_szOFNData[ MAX_PATH];
  13. private: // DATA
  14. CPropertySheetPage m_PropertySheetPage;
  15. OPENFILENAME m_ofn;
  16. CFilePanePropWnd2 * m_pDistroFilePane;
  17. CFilePanePropWnd2 * m_pAutoFilePane;
  18. BOOL m_bHadAutoConf;
  19. BOOL m_bLastRoundUp;
  20. LPTSTR m_szLastLocation;
  21. public:
  22. inline CFilePanePropWnd2 * GetDistroFilePane() { return m_pDistroFilePane; }
  23. inline CFilePanePropWnd2 * GetAutoFilePane() { return m_pAutoFilePane; }
  24. inline BOOL TurnedOffAutoConf() { return m_bLastRoundUp; }
  25. private:
  26. CDistributionSheet( void );
  27. ~CDistributionSheet( void );
  28. LPCPROPSHEETPAGE GetPropertySheet( void ) const { return &m_PropertySheetPage;}
  29. void CreateFilePanes(HWND hDlg);
  30. // int GetEditLen( UINT id );
  31. // void GetEditText( UINT id, TCHAR* sz, int cb );
  32. };
  33. #endif // __FileParm_h__