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

📄 dlgshuoming.cpp

📁 windows CE下面的简单的串口调试工具
💻 CPP
字号:
// DlgShuoming.cpp : implementation file
//

#include "stdafx.h"
#include "Serial.h"
#include "DlgShuoming.h"

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

/////////////////////////////////////////////////////////////////////////////
// CDlgShuoming dialog


CDlgShuoming::CDlgShuoming(CWnd* pParent /*=NULL*/)
	: CDialog(CDlgShuoming::IDD, pParent)
{
	//{{AFX_DATA_INIT(CDlgShuoming)
		// NOTE: the ClassWizard will add member initialization here
	//}}AFX_DATA_INIT
	shuobrush = CreateSolidBrush(RGB(206,211,231));
}


void CDlgShuoming::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CDlgShuoming)
	DDX_Control(pDX, IDC_BUTTON1, m_btn_know);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CDlgShuoming, CDialog)
	//{{AFX_MSG_MAP(CDlgShuoming)
	ON_BN_CLICKED(IDC_BUTTON1, OnButton1)
	ON_WM_CTLCOLOR()
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CDlgShuoming message handlers

void CDlgShuoming::OnButton1() 
{
	// TODO: Add your control notification handler code here
	OnOK();
}

BOOL CDlgShuoming::OnInitDialog() 
{
	CDialog::OnInitDialog();
	
	// TODO: Add extra initialization here
	
	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}

HBRUSH CDlgShuoming::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor) 
{
	HBRUSH hbr = CDialog::OnCtlColor(pDC, pWnd, nCtlColor);
	
    pDC->SetBkMode(TRANSPARENT); 


	// TODO: Change any attributes of the DC here
	//pDC->SetBkMode(TRANSPARENT);
	// TODO: Return a different brush if the default is not desired
	return shuobrush;
}

⌨️ 快捷键说明

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