📄 psnrviewdlg.cpp
字号:
// PsnrViewDlg.cpp : implementation file
//
#include "stdafx.h"
#include "JpegQualityTest.h"
#include "PsnrViewDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CPsnrViewDlg dialog
CPsnrViewDlg::CPsnrViewDlg(CWnd* pParent /*=NULL*/)
: CDialog(CPsnrViewDlg::IDD, pParent)
{
//{{AFX_DATA_INIT(CPsnrViewDlg)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
}
void CPsnrViewDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CPsnrViewDlg)
// NOTE: the ClassWizard will add DDX and DDV calls here
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CPsnrViewDlg, CDialog)
//{{AFX_MSG_MAP(CPsnrViewDlg)
ON_WM_PAINT()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CPsnrViewDlg message handlers
void CPsnrViewDlg::OnPaint()
{
CPaintDC dc(this); // device context for painting
dc.FillSolidRect(10,10,300,150,RGB(0,0,200));
for (int i=0;i<100;i++){
dc.FillSolidRect(10+i*3,160-m_PsnrDiagram[i],2,m_PsnrDiagram[i],RGB(255,255,300));
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -