dlgcurve.cpp
来自「串口通信,R232.使用VC++ 编写.欢迎大家传播」· C++ 代码 · 共 55 行
CPP
55 行
// DlgCurve.cpp : implementation file
//
#include "stdafx.h"
#include "newcom.h"
#include "DlgCurve.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CDlgCurve dialog
CDlgCurve::CDlgCurve(CWnd* pParent /*=NULL*/)
: CDialog(CDlgCurve::IDD, pParent)
{
//{{AFX_DATA_INIT(CDlgCurve)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
m_Brush.CreateSolidBrush (RGB(255,255,0));
}
void CDlgCurve::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CDlgCurve)
// NOTE: the ClassWizard will add DDX and DDV calls here
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CDlgCurve, CDialog)
//{{AFX_MSG_MAP(CDlgCurve)
ON_WM_CTLCOLOR()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CDlgCurve message handlers
HBRUSH CDlgCurve::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)
{
HBRUSH hbr = CDialog::OnCtlColor(pDC, pWnd, nCtlColor);
// TODO: Change any attributes of the DC here
return m_Brush;
// TODO: Return a different brush if the default is not desired
//return hbr;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?