chooselistdialog.h

来自「GIS地理信息系统开发。大名鼎鼎的MAPX+C++软件开发」· C头文件 代码 · 共 62 行

H
62
字号
/* This sample application and corresponding sample code is provided 
 * for example purposes only.  It has not undergone rigorous testing 
 * and as such should not be shipped as part of a final application 
 * without extensive testing on the part of the organization releasing 
 * the end-user product.
 */

#if !defined(AFX_CHOOSELISTDIALOG_H__B35795C0_3486_11D3_9578_00AA00571CAB__INCLUDED_)
#define AFX_CHOOSELISTDIALOG_H__B35795C0_3486_11D3_9578_00AA00571CAB__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// ChooseListDialog.h : header file
//
#include "Resource.h"

/////////////////////////////////////////////////////////////////////////////
// CChooseListDialog dialog

class CChooseListDialog : public CDialog
{
// Construction
public:
	CChooseListDialog(const CString& inPrompt, const CStringList& inChoices, int inDefaultChoice = 0, CWnd* pParent = NULL);   // standard constructor
	
	const CString GetChoice() /*throw (CString)*/;
// Dialog Data
	//{{AFX_DATA(CChooseListDialog)
	enum { IDD = IDD_LISTDLG };
	CString	m_Choice;
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CChooseListDialog)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	CString prompt;
	const CStringList& choices;
	int defaultChoice;


	// Generated message map functions
	//{{AFX_MSG(CChooseListDialog)
	virtual BOOL OnInitDialog();
	virtual void OnCancel();
	afx_msg void OnDblclkChoiceList();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_CHOOSELISTDIALOG_H__B35795C0_3486_11D3_9578_00AA00571CAB__INCLUDED_)

⌨️ 快捷键说明

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