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.

63 lines
1.7 KiB

  1. // CrQDlg.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 "CrQDlg.h"
  14. #ifdef _DEBUG
  15. #define new DEBUG_NEW
  16. #undef THIS_FILE
  17. static char THIS_FILE[] = __FILE__;
  18. #endif
  19. /////////////////////////////////////////////////////////////////////////////
  20. // CCreateQueueDialog dialog
  21. CCreateQueueDialog::CCreateQueueDialog(CWnd* pParent /*=NULL*/)
  22. : CDialog(CCreateQueueDialog::IDD, pParent)
  23. {
  24. TCHAR szTmpBuffer[BUFFERSIZE];
  25. DWORD dwTmpBufferSize = BUFFERSIZE;
  26. GetComputerName(szTmpBuffer, &dwTmpBufferSize);
  27. _tcscat(szTmpBuffer, TEXT("\\"));
  28. //{{AFX_DATA_INIT(CCreateQueueDialog)
  29. m_strLabel = TEXT("MQ API test");
  30. m_strPathName = szTmpBuffer;
  31. //}}AFX_DATA_INIT
  32. }
  33. void CCreateQueueDialog::DoDataExchange(CDataExchange* pDX)
  34. {
  35. CDialog::DoDataExchange(pDX);
  36. //{{AFX_DATA_MAP(CCreateQueueDialog)
  37. DDX_Text(pDX, IDC_QUEUE_LABEL, m_strLabel);
  38. DDV_MaxChars(pDX, m_strLabel, 128);
  39. DDX_Text(pDX, IDC_QUEUE_PATHNAME, m_strPathName);
  40. DDV_MaxChars(pDX, m_strPathName, 128);
  41. //}}AFX_DATA_MAP
  42. }
  43. BEGIN_MESSAGE_MAP(CCreateQueueDialog, CDialog)
  44. //{{AFX_MSG_MAP(CCreateQueueDialog)
  45. //}}AFX_MSG_MAP
  46. END_MESSAGE_MAP()
  47. /////////////////////////////////////////////////////////////////////////////
  48. // CCreateQueueDialog message handlers
  49.