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.

67 lines
1.7 KiB

  1. // OpenQDlg.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. // COpenQueueDialog dialog
  13. class COpenQueueDialog : public CDialog
  14. {
  15. // Construction
  16. public:
  17. COpenQueueDialog(CArray <ARRAYQ*, ARRAYQ*>*, CWnd* pParent = NULL); // standard constructor
  18. // Dialog Data
  19. //{{AFX_DATA(COpenQueueDialog)
  20. enum { IDD = IDD_OPEN_QUEUE_DIALOG };
  21. CComboBox m_PathNameCB;
  22. BOOL m_bReceiveAccessFlag;
  23. BOOL m_bPeekAccessFlag;
  24. BOOL m_SendAccessFlag;
  25. CString m_szPathName;
  26. //}}AFX_DATA
  27. /* pointer to the array with the strings for the combo box (Queues PathName). */
  28. CArray <ARRAYQ*, ARRAYQ*>* m_pStrArray ;
  29. // Overrides
  30. // ClassWizard generated virtual function overrides
  31. //{{AFX_VIRTUAL(COpenQueueDialog)
  32. protected:
  33. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  34. //}}AFX_VIRTUAL
  35. // Implementation
  36. protected:
  37. // Generated message map functions
  38. //{{AFX_MSG(COpenQueueDialog)
  39. virtual BOOL OnInitDialog();
  40. //}}AFX_MSG
  41. DECLARE_MESSAGE_MAP()
  42. protected:
  43. public:
  44. void GetPathName(TCHAR szPathName[BUFFERSIZE])
  45. {
  46. _tcscpy (szPathName, m_szPathName);
  47. }
  48. DWORD GetAccess()
  49. {
  50. return (
  51. ((m_bReceiveAccessFlag) ? MQ_RECEIVE_ACCESS : 0) |
  52. ((m_bPeekAccessFlag) ? MQ_PEEK_ACCESS : 0) |
  53. ((m_SendAccessFlag) ? MQ_SEND_ACCESS : 0)
  54. );
  55. }
  56. };