|
// pixelcolor.cpp : implementation file
//
#include "stdafx.h"
#include "eikona.h"
#include "pixelcolor.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// pixelcolor dialog
pixelcolor::pixelcolor(CWnd* pParent /*=NULL*/)
: CDialog(pixelcolor::IDD, pParent)
{
//{{AFX_DATA_INIT(pixelcolor)
m_red = 0;
m_green = 0;
m_blue = 0;
m_x = 0;
m_y = 0;
//}}AFX_DATA_INIT
}
void pixelcolor::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(pixelcolor)
DDX_Text(pDX, IDC_EDIT1, m_red);
DDX_Text(pDX, IDC_EDIT2, m_green);
DDX_Text(pDX, IDC_EDIT3, m_blue);
DDX_Text(pDX, IDC_EDIT5, m_x);
DDX_Text(pDX, IDC_EDIT6, m_y);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(pixelcolor, CDialog)
//{{AFX_MSG_MAP(pixelcolor)
// NOTE: the ClassWizard will add message map macros here
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// pixelcolor message handlers
void pixelcolor::transfercolors(BYTE red, BYTE green, BYTE blue, UINT x,UINT y)
{
m_red=red;
m_green=green;
m_blue=blue;
m_x=x;
m_y=y;
UpdateData(FALSE);
}
pixelcolor::~pixelcolor()
{
shown=FALSE;
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.