www.pudn.com > SegExample.zip > SegmentView.h


// SegmentView.h : interface of the CSegmentView class 
// 
///////////////////////////////////////////////////////////////////////////// 
 
#if !defined(AFX_SEGMENTVIEW_H__D78EE7A8_75A0_4FCB_9EEA_5AA8E31BA260__INCLUDED_) 
#define AFX_SEGMENTVIEW_H__D78EE7A8_75A0_4FCB_9EEA_5AA8E31BA260__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
 
 
class CSegmentView : public CFormView 
{ 
protected: // create from serialization only 
	CSegmentView(); 
	DECLARE_DYNCREATE(CSegmentView) 
 
public: 
	//{{AFX_DATA(CSegmentView) 
	enum { IDD = IDD_SEGMENT_FORM }; 
	CListBox	m_ctrResult; 
	CString	m_strToSeg; 
	CString	m_strSeged; 
	//}}AFX_DATA 
 
// Attributes 
public: 
	CSegmentDoc* GetDocument(); 
 
// Operations 
public: 
 
// Overrides 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CSegmentView) 
	public: 
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs); 
	protected: 
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support 
	virtual void OnInitialUpdate(); // called first time after construct 
	virtual BOOL OnPreparePrinting(CPrintInfo* pInfo); 
	virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo); 
	virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo); 
	virtual void OnPrint(CDC* pDC, CPrintInfo* pInfo); 
	//}}AFX_VIRTUAL 
 
// Implementation 
public: 
	virtual ~CSegmentView(); 
#ifdef _DEBUG 
	virtual void AssertValid() const; 
	virtual void Dump(CDumpContext& dc) const; 
#endif 
 
protected: 
 
// Generated message map functions 
protected: 
	//{{AFX_MSG(CSegmentView) 
	afx_msg void OnButton1(); 
	afx_msg void OnButton2(); 
	afx_msg void OnSegfile(); 
	//}}AFX_MSG 
	DECLARE_MESSAGE_MAP() 
}; 
 
#ifndef _DEBUG  // debug version in SegmentView.cpp 
inline CSegmentDoc* CSegmentView::GetDocument() 
   { return (CSegmentDoc*)m_pDocument; } 
#endif 
 
///////////////////////////////////////////////////////////////////////////// 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_SEGMENTVIEW_H__D78EE7A8_75A0_4FCB_9EEA_5AA8E31BA260__INCLUDED_)