inboxcontext.cpp

来自「自己写的关于车台控制面板的演示程序」· C++ 代码 · 共 59 行

CPP
59
字号
// InboxContext.cpp : implementation file
//

#include "stdafx.h"
#include "ConsoleDisplay.h"
#include "InboxContext.h"
#include "ConsoleDisplay1.h"



#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CInboxContext dialog

extern bool tmodmo;
CInboxContext::CInboxContext(CWnd* pParent /*=NULL*/)
	: CDialog(CInboxContext::IDD, pParent)
{
	//{{AFX_DATA_INIT(CInboxContext)
	if(tmodmo==false)
		m_inbox = _T("Connecting...");
	else
		m_inbox=_T("Direct");
	//}}AFX_DATA_INIT
}


void CInboxContext::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CInboxContext)
	DDX_Text(pDX, IDC_EDIT1, m_inbox);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CInboxContext, CDialog)
	//{{AFX_MSG_MAP(CInboxContext)
	ON_BN_CLICKED(IDC_BUTTON2, OnButton2)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CInboxContext message handlers

void CInboxContext::OnButton2() 
{
	// TODO: Add your control notification handler code here
	CDialog::OnOK();
	CConsoleDisplay a;
	a.DoModal();
	
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?