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.

106 lines
3.0 KiB

  1. /*++
  2. Microsoft Windows
  3. Copyright (C) Microsoft Corporation, 1981 - 1999
  4. Module Name:
  5. irrecvprogress.h
  6. Abstract:
  7. Author:
  8. Rahul Thombre (RahulTh) 4/30/1998
  9. Revision History:
  10. 4/30/1998 RahulTh
  11. Created this module.
  12. --*/
  13. #if !defined(AFX_IRRECVPROGRESS_H__92AAA949_B881_11D1_A60D_00C04FC252BD__INCLUDED_)
  14. #define AFX_IRRECVPROGRESS_H__92AAA949_B881_11D1_A60D_00C04FC252BD__INCLUDED_
  15. #if _MSC_VER >= 1000
  16. #pragma once
  17. #endif // _MSC_VER >= 1000
  18. // IrRecvProgress.h : header file
  19. //
  20. /////////////////////////////////////////////////////////////////////////////
  21. // CIrRecvProgress dialog
  22. #define RECV_MAGIC_ID 0x8999cdef
  23. #define IRDA_DEVICE_NAME_LENGTH 22
  24. class CIrRecvProgress : public CDialog
  25. {
  26. // Construction
  27. public:
  28. DWORD m_dwMagicID;
  29. CIrRecvProgress(wchar_t * MachineName, boolean bSuppressRecvConf,
  30. CWnd* pParent = NULL); // standard constructor
  31. void DestroyAndCleanup(DWORD status);
  32. DWORD GetPermission( wchar_t Name[], BOOL fDirectory );
  33. DWORD PromptForPermission( wchar_t Name[], BOOL fDirectory );
  34. // Dialog Data
  35. //{{AFX_DATA(CIrRecvProgress)
  36. enum { IDD = IDD_RECEIVEPROGRESS };
  37. CAnimateCtrl m_xferAnim;
  38. CStatic m_icon;
  39. CStatic m_File;
  40. CStatic m_DoneText;
  41. CStatic m_machDesc;
  42. CStatic m_recvDesc;
  43. CStatic m_xferDesc;
  44. CStatic m_Machine;
  45. CButton m_btnCloseOnComplete;
  46. CButton m_btnCancel;
  47. //}}AFX_DATA
  48. // Overrides
  49. // ClassWizard generated virtual function overrides
  50. //{{AFX_VIRTUAL(CIrRecvProgress)
  51. protected:
  52. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  53. virtual void PostNcDestroy();
  54. //}}AFX_VIRTUAL
  55. // Implementation
  56. protected:
  57. // Generated message map functions
  58. //{{AFX_MSG(CIrRecvProgress)
  59. virtual void OnCancel();
  60. virtual BOOL DestroyWindow();
  61. virtual BOOL OnInitDialog();
  62. //}}AFX_MSG
  63. DECLARE_MESSAGE_MAP()
  64. private: //data
  65. ITaskbarList * m_ptl;
  66. wchar_t m_LastPermittedDirectory[1+MAX_PATH];
  67. CString m_szMachineName;
  68. BOOL m_fDontPrompt; //whether the user should be prompted for receive confirmation
  69. BOOL m_fFirstXfer; //if this is the first time we are asking for confirmation
  70. BOOL m_bRecvFromCamera; //indicates if the sender is a camera
  71. BOOL m_bDlgDestroyed; // Indicates that the dialog has already been destroyed. Required to protect against multiple calls to OnRecvFinished
  72. private: //helper functions
  73. void ShowProgressControls (int nCmdShow);
  74. void ShowSummaryControls (int nCmdShow);
  75. };
  76. //{{AFX_INSERT_LOCATION}}
  77. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  78. #endif // !defined(AFX_IRRECVPROGRESS_H__92AAA949_B881_11D1_A60D_00C04FC252BD__INCLUDED_)