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.

73 lines
2.0 KiB

  1. // DelQDlg.cpp : implementation 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. #include "stdafx.h"
  12. #include "MQApitst.h"
  13. #include "DelQDlg.h"
  14. #ifdef _DEBUG
  15. #define new DEBUG_NEW
  16. #undef THIS_FILE
  17. static char THIS_FILE[] = __FILE__;
  18. #endif
  19. /////////////////////////////////////////////////////////////////////////////
  20. // CDeleteQueueDialog dialog
  21. CDeleteQueueDialog::CDeleteQueueDialog(CArray<ARRAYQ*, ARRAYQ*>* pStrArray, CWnd* pParent /*=NULL*/)
  22. : CDialog(CDeleteQueueDialog::IDD, pParent)
  23. {
  24. m_pStrArray = pStrArray;
  25. //{{AFX_DATA_INIT(CDeleteQueueDialog)
  26. m_szPathName = _T("");
  27. //}}AFX_DATA_INIT
  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. BEGIN_MESSAGE_MAP(CDeleteQueueDialog, CDialog)
  39. //{{AFX_MSG_MAP(CDeleteQueueDialog)
  40. //}}AFX_MSG_MAP
  41. END_MESSAGE_MAP()
  42. /////////////////////////////////////////////////////////////////////////////
  43. // CDeleteQueueDialog message handlers
  44. BOOL CDeleteQueueDialog::OnInitDialog()
  45. {
  46. CDialog::OnInitDialog();
  47. int i;
  48. // TODO: Add extra initialization here
  49. for (i=0 ; i<m_pStrArray->GetSize() ; i++)
  50. VERIFY (m_PathNameCB.AddString((*m_pStrArray)[i]->szPathName) != CB_ERR);
  51. if (m_PathNameCB.GetCount() > 0) m_PathNameCB.SetCurSel(0);
  52. return TRUE; // return TRUE unless you set the focus to a control
  53. // EXCEPTION: OCX Property Pages should return FALSE
  54. }