📄 gray.cpp
字号:
// Gray.cpp : implementation file
//
#include "stdafx.h"
#include "photostar.h"
#include "Gray.h"
#include "ImageObject.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CGray dialog
CGray::CGray(CWnd* pParent /*=NULL*/)
: CDialog(CGray::IDD, pParent)
{
//{{AFX_DATA_INIT(CGray)
m_blue = 0;
m_green = 0;
m_red = 0;
//}}AFX_DATA_INIT
}
void CGray::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CGray)
DDX_Text(pDX, IDC_BLUE, m_blue);
DDX_Text(pDX, IDC_GREEN, m_green);
DDX_Text(pDX, IDC_RED, m_red);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CGray, CDialog)
//{{AFX_MSG_MAP(CGray)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CGray message handlers
//DEL void CGray::ONSHOWGRAY()
//DEL {
//DEL m_pImageObject->GetRGBValue(m_x,m_y,m_red,m_green,m_blue);
//DEL UpdateData(TRUE);
//DEL }
BOOL CGray::OnInitDialog()
{
CDialog::OnInitDialog();
// TODO: Add extra initialization here
m_pImageObject->GetRGBValue(m_x,m_y,m_red,m_green,m_blue);
UpdateData(FALSE);
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -