Source code of Windows XP (NT5)
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.

76 lines
2.0 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1998 - 1999
  6. //
  7. // File: imagetransferpage.h
  8. //
  9. //--------------------------------------------------------------------------
  10. #ifndef __IMAGETRANSFERPAGE_H__
  11. #define __IMAGETRANSFERPAGE_H__
  12. // ImageTransferPage.h : header file
  13. //
  14. #include "PropertyPage.h"
  15. #include "Controls.h"
  16. #define CHANGE_EXPLORE_ON_COMPLETION 0x01
  17. #define CHANGE_DISABLE_IRCOMM 0x02
  18. #define CHANGE_IMAGE_LOCATION 0x04
  19. /////////////////////////////////////////////////////////////////////////////
  20. // ImageTransferPage dialog
  21. class ImageTransferPage : public PropertyPage
  22. {
  23. // Construction
  24. public:
  25. ImageTransferPage(HINSTANCE hInst, HWND parent) :
  26. PropertyPage(IDD_IMAGETRANSFER, hInst),
  27. m_ctrlEnableIrCOMM(IDC_IMAGEXFER_ENABLE_IRCOMM),
  28. m_ctrlEnableExploring(IDC_IMAGEXFER_EXPLOREONCOMPLETION),
  29. m_ctrlDestLocation(IDC_IMAGEXFER_DEST) {
  30. m_ExploringEnabled = 1;
  31. m_IrCOMMEnabled = 0;
  32. m_TempDestLocation[0] = _T('\0');
  33. m_FinalDestLocation[0] = _T('\0');
  34. m_ChangeMask = 0; }
  35. ~ImageTransferPage() { ; }
  36. // Dialog Data
  37. Button m_ctrlEnableIrCOMM;
  38. Button m_ctrlEnableExploring;
  39. Edit m_ctrlDestLocation;
  40. // Overrides
  41. private:
  42. void OnApply(LPPSHNOTIFY lppsn);
  43. BOOL OnHelp (LPHELPINFO pHelpInfo);
  44. BOOL OnContextMenu (WPARAM wParam, LPARAM lParam);
  45. void OnCommand(UINT ctrlId, HWND hwndCtrl, UINT cNotify);
  46. INT_PTR OnInitDialog(HWND hDialog);
  47. // Implementation
  48. protected:
  49. void OnEnableExploring();
  50. void OnEnableIrCOMM();
  51. void OnBrowse();
  52. private:
  53. void LoadRegistrySettings();
  54. void SaveRegistrySettings();
  55. int m_ExploringEnabled;
  56. int m_IrCOMMEnabled;
  57. TCHAR m_FinalDestLocation[MAX_PATH + 1];
  58. DWORD m_ChangeMask;
  59. TCHAR m_TempDestLocation[MAX_PATH + 1];
  60. };
  61. extern HINSTANCE gHInst;
  62. #endif // __IMAGETRANSFERPAGE_H__