Click here to Skip to main content
12,454,477 members (51,405 online)
Click here to Skip to main content

Stats

47.7K views
1.4K downloads
22 bookmarked
Posted

Subselection Dialog

, 17 Nov 1999
Subselection dialog.
// MySelection.cpp: Implementierungsdatei
//

#include "stdafx.h"
#include "SelectDlg.h"
#include "MySelection.h"

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

/////////////////////////////////////////////////////////////////////////////
// Dialogfeld CMySelection 


CMySelection::CMySelection(CWnd* pParent /*=NULL*/)
	: CSubSelectionDlg(CMySelection::IDD,CMySelection::IDD2,CMySelection::IDD3, pParent)
{
	//{{AFX_DATA_INIT(CMySelection)
	m_nInsertPos = 0;
	m_bShowAll = FALSE;
	m_nPos = 0;
	//}}AFX_DATA_INIT
}


void CMySelection::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CMySelection)
	DDX_Control(pDX, IDC_SELECTION_LIST2, m_SelectionList2);
	DDX_Control(pDX, IDC_SELECTION_LIST1, m_SelectionList1);
	DDX_Check(pDX, IDC_KEEP_ALL, m_bMyShowAll);
	DDX_Radio(pDX, IDC_INSERTPOS, m_nPos);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CMySelection, CSubSelectionDlg)
	//{{AFX_MSG_MAP(CMySelection)
	ON_BN_CLICKED(IDC_KEEP_ALL, OnKeepAll)
	ON_BN_CLICKED(IDC_INSERTPOS, OnInsertPos)
	ON_BN_CLICKED(IDC_INSERTPOS2, OnInsertPos)
	ON_BN_CLICKED(IDC_INSERTPOS3, OnInsertPos)
	ON_LBN_DBLCLK(IDC_SELECTION_LIST1, OnDblclkSelectionList1)
	ON_LBN_DBLCLK(IDC_SELECTION_LIST2, OnDblclkSelectionList2)
	ON_BN_CLICKED(IDC_MOVEDOWN, OnMovedown)
	ON_BN_CLICKED(IDC_MOVEUP, OnMoveup)
	ON_BN_CLICKED(IDC_EXCLUDE, OnExclude)
	ON_BN_CLICKED(IDC_INCLUDE, OnInclude)
	ON_BN_CLICKED(IDC_SELECTALL, OnSelectAll)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// Behandlungsroutinen f�r Nachrichten CMySelection 

void CMySelection::InitListBox1()
{
	m_SelectionList1.AddString("Sample 1");
	m_SelectionList1.AddString("Sample 2");
	m_SelectionList1.AddString("Sample 3");
	m_SelectionList1.AddString("Sample 4");
	m_SelectionList1.AddString("Sample 5");
	m_SelectionList1.AddString("Sample 6");
	m_SelectionList1.AddString("Sample 7");
}

void CMySelection::InitListBox2()
{
}


void CMySelection::OnBefore() 
{
	UpdateData(TRUE);
	SetAttributes(m_bMyShowAll, m_nPos);
}

void CMySelection::OnKeepAll() 
{
	UpdateData(TRUE);
	SetAttributes(m_bMyShowAll, m_nPos);
}

void CMySelection::OnInsertPos() 
{
	UpdateData(TRUE);
	SetAttributes(m_bMyShowAll, m_nPos);
}

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.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

Share

About the Author

Daniel Zuppinger
Chief Technology Officer
Switzerland Switzerland
Professional IT developer since 1983. First projects with Cobol, then Pascal, Modula2, C and since Visual C++ 1.0 also with C++. Works since 1986 as Consultant, between 1990 and 2008 for Infobrain in Switzerland, currently employed by enValue (also Switzerland).
Current field is the project management and development of software for Bank applications.
Married, two daughters, Hobbies : Paragliding, Orienteering, Mountainbiking, Photography

You may also be interested in...

Pro
Pro
| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.160826.1 | Last Updated 18 Nov 1999
Article Copyright 1999 by Daniel Zuppinger
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid