windows-nt/Source/XPSP1/NT/inetsrv/msmq/sdk/samples/mqapitst/crqdlg.cpp
2020-09-26 16:20:57 +08:00

64 lines
1.7 KiB
C++
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// CrQDlg.cpp : implementation file
//
//=--------------------------------------------------------------------------=
// Copyright 1997-1999 Microsoft Corporation. All Rights Reserved.
//
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
// PARTICULAR PURPOSE.
//=--------------------------------------------------------------------------=
#include "stdafx.h"
#include "MQApitst.h"
#include "CrQDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CCreateQueueDialog dialog
CCreateQueueDialog::CCreateQueueDialog(CWnd* pParent /*=NULL*/)
: CDialog(CCreateQueueDialog::IDD, pParent)
{
TCHAR szTmpBuffer[BUFFERSIZE];
DWORD dwTmpBufferSize = BUFFERSIZE;
GetComputerName(szTmpBuffer, &dwTmpBufferSize);
_tcscat(szTmpBuffer, TEXT("\\"));
//{{AFX_DATA_INIT(CCreateQueueDialog)
m_strLabel = TEXT("MQ API test");
m_strPathName = szTmpBuffer;
//}}AFX_DATA_INIT
}
void CCreateQueueDialog::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CCreateQueueDialog)
DDX_Text(pDX, IDC_QUEUE_LABEL, m_strLabel);
DDV_MaxChars(pDX, m_strLabel, 128);
DDX_Text(pDX, IDC_QUEUE_PATHNAME, m_strPathName);
DDV_MaxChars(pDX, m_strPathName, 128);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CCreateQueueDialog, CDialog)
//{{AFX_MSG_MAP(CCreateQueueDialog)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CCreateQueueDialog message handlers