home *** CD-ROM | disk | FTP | other *** search
/ Chip 1998 February / CHIP_2_98.iso / software / pelne / optionp / msmqocm.cab / crqdlg.cpp < prev    next >
Text File  |  1997-10-06  |  1KB  |  54 lines

  1. // CrQDlg.cpp : implementation file
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include "MQApitst.h"
  6. #include "CrQDlg.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. // CCreateQueueDialog dialog
  16.  
  17.  
  18. CCreateQueueDialog::CCreateQueueDialog(CWnd* pParent /*=NULL*/)
  19.    : CDialog(CCreateQueueDialog::IDD, pParent)
  20. {
  21.    TCHAR szTmpBuffer[BUFFERSIZE];
  22.    DWORD dwTmpBufferSize = BUFFERSIZE;
  23.  
  24.    GetComputerName(szTmpBuffer, &dwTmpBufferSize);
  25.  
  26.    _tcscat(szTmpBuffer, TEXT("\\"));
  27.  
  28.    //{{AFX_DATA_INIT(CCreateQueueDialog)
  29.    m_strLabel = TEXT("MQ API test");
  30.    m_strPathName = szTmpBuffer;
  31.    //}}AFX_DATA_INIT
  32. }
  33.  
  34.  
  35. void CCreateQueueDialog::DoDataExchange(CDataExchange* pDX)
  36. {
  37.    CDialog::DoDataExchange(pDX);
  38.    //{{AFX_DATA_MAP(CCreateQueueDialog)
  39.    DDX_Text(pDX, IDC_QUEUE_LABEL, m_strLabel);
  40.    DDV_MaxChars(pDX, m_strLabel, 128);
  41.    DDX_Text(pDX, IDC_QUEUE_PATHNAME, m_strPathName);
  42.    DDV_MaxChars(pDX, m_strPathName, 128);
  43.    //}}AFX_DATA_MAP
  44. }
  45.  
  46.  
  47. BEGIN_MESSAGE_MAP(CCreateQueueDialog, CDialog)
  48.    //{{AFX_MSG_MAP(CCreateQueueDialog)
  49.    //}}AFX_MSG_MAP
  50. END_MESSAGE_MAP()
  51.  
  52. /////////////////////////////////////////////////////////////////////////////
  53. // CCreateQueueDialog message handlers
  54.