splitcolor.cpp

来自「影像采集卡开发源程序」· C++ 代码 · 共 72 行

CPP
72
字号
// Splitcolor.cpp : implementation file
//

#include "stdafx.h"
#include "VCShow.h"
#include "Splitcolor.h"

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

/////////////////////////////////////////////////////////////////////////////
// Splitcolor dialog


Splitcolor::Splitcolor(CWnd* pParent /*=NULL*/)
	: CDialog(Splitcolor::IDD, pParent)
{
	//{{AFX_DATA_INIT(Splitcolor)
		// NOTE: the ClassWizard will add member initialization here
	//}}AFX_DATA_INIT

}


void Splitcolor::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(Splitcolor)
		// NOTE: the ClassWizard will add DDX and DDV calls here
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(Splitcolor, CDialog)
	//{{AFX_MSG_MAP(Splitcolor)
	ON_BN_CLICKED(IDC_RADIO_RGB, OnRadioRgb)
	ON_BN_CLICKED(IDC_RADIO_HSL, OnRadioHsl)
	ON_BN_CLICKED(IDC_RADIO_YIQ, OnRadioYiq)
	ON_BN_CLICKED(IDC_RADIO_YUV, OnRadioYuv)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// Splitcolor message handlers

void Splitcolor::OnRadioRgb() 
{
	// TODO: Add your control notification handler code here
	m_split=0;
}

void Splitcolor::OnRadioHsl() 
{
	// TODO: Add your control notification handler code here
	m_split=1;
}

void Splitcolor::OnRadioYiq() 
{
	// TODO: Add your control notification handler code here
	m_split=3;
}

void Splitcolor::OnRadioYuv() 
{
	// TODO: Add your control notification handler code here
	m_split=2;
}

⌨️ 快捷键说明

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