Click here to Skip to main content
15,883,901 members
Articles / Desktop Programming / MFC

Subselection Dialog

Rate me:
Please Sign up or sign in to vote.
3.17/5 (3 votes)
17 Nov 19992 min read 52.1K   1.6K   22  
Subselection dialog.
// SelectDlgView.cpp : Implementierung der Klasse CSelectDlgView
//

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

#include "SelectDlgDoc.h"
#include "SelectDlgView.h"

#include "MySelection.h"

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

/////////////////////////////////////////////////////////////////////////////
// CSelectDlgView

IMPLEMENT_DYNCREATE(CSelectDlgView, CView)

BEGIN_MESSAGE_MAP(CSelectDlgView, CView)
	//{{AFX_MSG_MAP(CSelectDlgView)
	ON_COMMAND(ID_TEST, OnTest)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CSelectDlgView Konstruktion/Destruktion

CSelectDlgView::CSelectDlgView()
{
	// ZU ERLEDIGEN: Hier Code zur Konstruktion einf�gen,

}

CSelectDlgView::~CSelectDlgView()
{
}

BOOL CSelectDlgView::PreCreateWindow(CREATESTRUCT& cs)
{
	// ZU ERLEDIGEN: �ndern Sie hier die Fensterklasse oder das Erscheinungsbild, indem Sie
	//  CREATESTRUCT cs modifizieren.

	return CView::PreCreateWindow(cs);
}

/////////////////////////////////////////////////////////////////////////////
// CSelectDlgView Zeichnen

void CSelectDlgView::OnDraw(CDC* /* pDC */)
{
	CSelectDlgDoc* pDoc = GetDocument();
	ASSERT_VALID(pDoc);

	// ZU ERLEDIGEN: Hier Code zum Zeichnen der urspr�nglichen Daten hinzuf�gen
}

/////////////////////////////////////////////////////////////////////////////
// CSelectDlgView Diagnose

#ifdef _DEBUG
void CSelectDlgView::AssertValid() const
{
	CView::AssertValid();
}

void CSelectDlgView::Dump(CDumpContext& dc) const
{
	CView::Dump(dc);
}

CSelectDlgDoc* CSelectDlgView::GetDocument() // Die endg�ltige (nicht zur Fehlersuche kompilierte) Version ist Inline
{
	ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CSelectDlgDoc)));
	return (CSelectDlgDoc*)m_pDocument;
}
#endif //_DEBUG

/////////////////////////////////////////////////////////////////////////////
// CSelectDlgView Nachrichten-Handler

void CSelectDlgView::OnTest() 
{
	CMySelection dlg;
	dlg.DoModal();
}

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


Written By
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++ and today C#. Works since 1986 as Consultant, between 1990 and 2008 for Infobrain in Switzerland, from 2008 until 2013 for enValue (also Switzerland) and currently working for Comfone (Bern, Switzerland).

Married, two grown-up daughters, Hobbies : Paragliding, Orienteering, Mountainbiking, Photography

Comments and Discussions