home *** CD-ROM | disk | FTP | other *** search
/ Chip 1999 May / Chip_1999-05_cd.bin / zkuste / PersWebServer / msmqocm.cab / delqdlg.cpp < prev    next >
C/C++ Source or Header  |  1997-10-06  |  2KB  |  64 lines

  1. // DelQDlg.cpp : implementation file
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include "MQApitst.h"
  6. #include "DelQDlg.h"
  7.  
  8. #ifdef _DEBUG
  9. #define new DEBUG_NEW
  10. #undef THIS_FILE
  11. static char THIS_FILE[] = __FILE__;
  12. #endif
  13.  
  14. /////////////////////////////////////////////////////////////////////////////
  15. // CDeleteQueueDialog dialog
  16.  
  17.  
  18. CDeleteQueueDialog::CDeleteQueueDialog(CArray<ARRAYQ*, ARRAYQ*>* pStrArray, CWnd* pParent /*=NULL*/)
  19.     : CDialog(CDeleteQueueDialog::IDD, pParent)
  20. {
  21.     m_pStrArray = pStrArray;
  22.  
  23.     //{{AFX_DATA_INIT(CDeleteQueueDialog)
  24.     m_szPathName = _T("");
  25.     //}}AFX_DATA_INIT
  26. }
  27.  
  28.  
  29. void CDeleteQueueDialog::DoDataExchange(CDataExchange* pDX)
  30. {
  31.     CDialog::DoDataExchange(pDX);
  32.     //{{AFX_DATA_MAP(CDeleteQueueDialog)
  33.     DDX_Control(pDX, IDC_DELETE_QUEUE_COMBO, m_PathNameCB);
  34.     DDX_CBString(pDX, IDC_DELETE_QUEUE_COMBO, m_szPathName);
  35.     DDV_MaxChars(pDX, m_szPathName, 128);
  36.     //}}AFX_DATA_MAP
  37. }
  38.  
  39.  
  40. BEGIN_MESSAGE_MAP(CDeleteQueueDialog, CDialog)
  41.     //{{AFX_MSG_MAP(CDeleteQueueDialog)
  42.     //}}AFX_MSG_MAP
  43. END_MESSAGE_MAP()
  44.  
  45. /////////////////////////////////////////////////////////////////////////////
  46. // CDeleteQueueDialog message handlers
  47.  
  48. BOOL CDeleteQueueDialog::OnInitDialog() 
  49. {
  50.     CDialog::OnInitDialog();
  51.  
  52.     int i;
  53.     
  54.     // TODO: Add extra initialization here
  55.     for  (i=0 ; i<m_pStrArray->GetSize() ; i++)
  56.         VERIFY (m_PathNameCB.AddString((*m_pStrArray)[i]->szPathName) != CB_ERR);
  57.     
  58.     if (m_PathNameCB.GetCount() > 0) m_PathNameCB.SetCurSel(0);        
  59.  
  60.     return TRUE;  // return TRUE unless you set the focus to a control
  61.                   // EXCEPTION: OCX Property Pages should return FALSE
  62. }
  63.  
  64.