home *** CD-ROM | disk | FTP | other *** search
/ Chip 1998 February / CHIP_2_98.iso / software / pelne / optionp / msmqocm.cab / openqdlg.h < prev    next >
C/C++ Source or Header  |  1997-10-06  |  1KB  |  60 lines

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