📄 inboxcontext.cpp
字号:
// 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -