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.

89 lines
2.4 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1998 - 1999
  6. //
  7. // File: filetransferpage.h
  8. //
  9. //--------------------------------------------------------------------------
  10. #ifndef __FILETRANSFERPAGE_H__
  11. #define __FILETRANSFERPAGE_H__
  12. // FileTransferPage.h : header file
  13. //
  14. #include "PropertyPage.h"
  15. #include "Controls.h"
  16. #define CHANGE_DISPLAY_ICON 0x10
  17. #define CHANGE_ALLOW_FILE_XFER 0x20
  18. #define CHANGE_NOTIFY_ON_FILE_XFER 0x40
  19. #define CHANGE_FILE_LOCATION 0x80
  20. #define CHANGE_PLAY_SOUND 0x08
  21. /////////////////////////////////////////////////////////////////////////////
  22. // CFileTransferPage dialog
  23. class FileTransferPage : public PropertyPage
  24. {
  25. // Construction
  26. public:
  27. FileTransferPage(HINSTANCE hInst, HWND parent) :
  28. PropertyPage(IDD_FILETRANSFER, hInst),
  29. m_recvdFilesLocation(IDC_RECEIVEDFILESLOCATION),
  30. m_cbDisplayTray(IDC_DISPLAYTRAY),
  31. m_cbDisplayRecv(IDC_DISPLAYRECV),
  32. m_cbPlaySound(IDC_SOUND),
  33. m_cbAllowSend(IDC_ALLOWSEND) {
  34. m_fAllowSend = m_fDisplayRecv = m_fDisplayTray = m_fPlaySound = TRUE;
  35. m_FinalDestLocation[0] = _T('\0');
  36. m_TempDestLocation[0] = _T('\0');
  37. m_ChangeMask = 0;}
  38. ~FileTransferPage() { ; }
  39. friend LONG CALLBACK CPlApplet(HWND hwndCPL, UINT uMsg, LPARAM lParam1, LPARAM lParam2);
  40. // Dialog Data
  41. Edit m_recvdFilesLocation;
  42. Button m_cbDisplayTray;
  43. Button m_cbDisplayRecv;
  44. Button m_cbAllowSend;
  45. Button m_cbPlaySound;
  46. // Overrides
  47. public:
  48. void OnApply(LPPSHNOTIFY lppsn);
  49. protected:
  50. // Implementation
  51. protected:
  52. void OnAllowsend();
  53. void OnPlaySound();
  54. void OnDisplayrecv();
  55. void OnDisplaytray();
  56. INT_PTR OnInitDialog(HWND hwndDlg);
  57. void OnChoosefilelocation();
  58. BOOL OnHelp (LPHELPINFO pHelpInfo);
  59. BOOL OnContextMenu (WPARAM wParam, LPARAM lParam);
  60. void OnCommand(UINT ctrlId, HWND hwndCtrl, UINT cNotify);
  61. BOOL OnNetworkConnectionsLink();
  62. INT_PTR OnNotify(NMHDR * nmhdr);
  63. private:
  64. TCHAR m_FinalDestLocation[MAX_PATH];
  65. TCHAR m_TempDestLocation[MAX_PATH];
  66. void SaveSettingsToRegistry (void);
  67. void LoadRegistrySettings(void);
  68. BOOL m_fDisplayTray;
  69. BOOL m_fDisplayRecv;
  70. BOOL m_fAllowSend;
  71. BOOL m_fPlaySound;
  72. DWORD m_ChangeMask;
  73. };
  74. extern HINSTANCE gHInst;
  75. #endif // __FILETRANSFERPAGE_H__