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.

75 lines
1.8 KiB

  1. // RecvMDlg.h : header file
  2. //
  3. //=--------------------------------------------------------------------------=
  4. // Copyright 1997-1999 Microsoft Corporation. All Rights Reserved.
  5. //
  6. // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
  7. // ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
  8. // THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
  9. // PARTICULAR PURPOSE.
  10. //=--------------------------------------------------------------------------=
  11. /////////////////////////////////////////////////////////////////////////////
  12. // CReceiveMessageDialog dialog
  13. class CReceiveMessageDialog : public CDialog
  14. {
  15. // Construction
  16. public:
  17. CReceiveMessageDialog(CArray <ARRAYQ*, ARRAYQ*>*, CWnd* pParent = NULL); // standard constructor
  18. // Dialog Data
  19. //{{AFX_DATA(CReceiveMessageDialog)
  20. enum { IDD = IDD_RECEIVE_MESSAGE_DIALOG };
  21. CComboBox m_PathNameCB;
  22. CString m_szPathName;
  23. int m_iTimeout;
  24. DWORD m_dwBodySize;
  25. //}}AFX_DATA
  26. /* pointer to the array with the strings for the combo box (Queues PathName). */
  27. CArray <ARRAYQ*, ARRAYQ*>* m_pStrArray ;
  28. // Overrides
  29. // ClassWizard generated virtual function overrides
  30. //{{AFX_VIRTUAL(CReceiveMessageDialog)
  31. protected:
  32. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  33. //}}AFX_VIRTUAL
  34. // Implementation
  35. protected:
  36. // Generated message map functions
  37. //{{AFX_MSG(CReceiveMessageDialog)
  38. virtual BOOL OnInitDialog();
  39. //}}AFX_MSG
  40. DECLARE_MESSAGE_MAP()
  41. public:
  42. void GetPathName(TCHAR szPathName[BUFFERSIZE])
  43. {
  44. _tcscpy (szPathName, m_szPathName);
  45. }
  46. DWORD GetTimeout()
  47. {
  48. if (m_iTimeout < 0)
  49. {
  50. m_iTimeout = INFINITE;
  51. }
  52. return (m_iTimeout);
  53. }
  54. DWORD GetBodySize()
  55. {
  56. if (m_dwBodySize == 0)
  57. {
  58. m_dwBodySize = BUFFERSIZE ;
  59. }
  60. return (m_dwBodySize) ;
  61. }
  62. };