⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 consoleinbox.cpp

📁 自己写的关于车台控制面板的演示程序
💻 CPP
字号:
// ConsoleInbox.cpp : implementation file
//

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

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

/////////////////////////////////////////////////////////////////////////////
// CConsoleInbox dialog

extern HANDLE hcondisplay;
CConsoleInbox::CConsoleInbox(CWnd* pParent /*=NULL*/)
	: CDialog(CConsoleInbox::IDD, pParent)
{
	//{{AFX_DATA_INIT(CConsoleInbox)
		// NOTE: the ClassWizard will add member initialization here
	//}}AFX_DATA_INIT
}


void CConsoleInbox::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CConsoleInbox)
		// NOTE: the ClassWizard will add DDX and DDV calls here
	//}}AFX_DATA_MAP
}


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

/////////////////////////////////////////////////////////////////////////////
// CConsoleInbox message handlers

void CConsoleInbox::OnButton2() 
{
	//all close the windowns
	// TODO: Add your control notification handler code here

	//CDialog::OnOK();
    //SendMessage(CWnd::FindWindow(null,null),WM_CLOSE,null,null);
    //m_displayinbox.EndDialog(0);

	CInboxContext a;
	a.DoModal();
	
//	::DestroyHandle(hcondisplay);
	//::DestroyWindow(hcondisplay);
	
}

⌨️ 快捷键说明

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