www.gusucode.com > VC++动态刷新数据库和多表切换示例-源码程序 > VC++动态刷新数据库和多表切换示例-源码程序/code/mytest/DialogFilter.cpp

    //Download by http://www.NewXing.com
// DialogFilter.cpp : implementation file
//

#include "stdafx.h"
#include "mytest.h"
#include "DialogFilter.h"
//#include "mytestview.h"
#include "mytestset.h"

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

/////////////////////////////////////////////////////////////////////////////
// CDialogFilter dialog


CDialogFilter::CDialogFilter(CWnd* pParent /*=NULL*/)
	: CDialog(CDialogFilter::IDD, pParent)
{
	//{{AFX_DATA_INIT(CDialogFilter)
	m_pSet = NULL;
	m_filter_value = _T("");
	//}}AFX_DATA_INIT
}


void CDialogFilter::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CDialogFilter)
	DDX_Text(pDX, IDC_EDIT_FILTER_THIS, m_filter_value);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CDialogFilter, CDialog)
	//{{AFX_MSG_MAP(CDialogFilter)
	ON_BN_CLICKED(IDC_RADIO_SEX, OnRadioSex)
	ON_BN_CLICKED(IDC_RADIO_NAME, OnRadioName)
	ON_BN_CLICKED(IDC_RADIO_PARTY, OnRadioParty)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CDialogFilter message handlers

void CDialogFilter::OnOK() 
{
	// TODO: Add extra validation here
		
	CDialog::OnOK();
}

void CDialogFilter::OnRadioSex() 
{
	// TODO: Add your control notification handler code here
	Radio = "Sex";
}

void CDialogFilter::OnRadioName() 
{
	// TODO: Add your control notification handler code here
	Radio = "Name";	
}

void CDialogFilter::OnRadioParty() 
{
	// TODO: Add your control notification handler code here
	Radio = "Party";	
}