Click here to Skip to main content
11,579,360 members (79,912 online)
Click here to Skip to main content
Add your own
alternative version

Address Book

, 6 Aug 2000 CPOL 232K 5K 93
Address Book application
// AddressView.h : interface of the CAddressView class

#if !defined(AFX_ADDRESSVIEW_H__DDB8607D_B0EF_11D2_9848_008048E6DC7F__INCLUDED_)
#define AFX_ADDRESSVIEW_H__DDB8607D_B0EF_11D2_9848_008048E6DC7F__INCLUDED_

#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000

#include "AddressCtrl.h"

class CAddressView : public CFormView
protected: // create from serialization only
	CFont ftTimes;

	CAddressCtrl	wndList;
		// NOTE: the ClassWizard will add data members here

// Attributes
	CAddressDoc* GetDocument();
	// m_pSelection holds the selection to the current CAddressCntrItem.
	// For many applications, such a member variable isn't adequate to
	//  represent a selection, such as a multiple selection or a selection
	//  of objects that are not CAddressCntrItem objects.  This selection
	//  mechanism is provided just to help you get started.

    long GetExInfoCallback(LXHDREX * pLx);
    void GetTextCallback(int iIndex, int iSubItem, long lCode, CString &cs);
// Operations

// Overrides
	// ClassWizard generated virtual function overrides
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	virtual void OnInitialUpdate(); // called first time after construct
	virtual void OnUpdate(CView* pSender, LPARAM lHint, CObject* pHint);
    LRESULT OnListExNotify(WPARAM wParam, LPARAM lParam);

// Implementation
	virtual ~CAddressView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;


// Generated message map functions
	afx_msg void OnDestroy();
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg void OnCancelEditCntr();
	afx_msg void OnGetdispinfoAddresslist(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnItemchangedAddresslist(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnDelete();
	afx_msg void OnHeaderformat();
	afx_msg void OnCustomizeheader();
	afx_msg void OnAutopreview();
	afx_msg void OnUpdateAutopreview(CCmdUI* pCmdUI);
	afx_msg void OnProperties();
	afx_msg void OnDial();
	afx_msg void OnDialhome();
	afx_msg void OnDialbusiness();
	afx_msg void OnEmail();
	afx_msg void OnUpdateDialbusiness(CCmdUI* pCmdUI);
	afx_msg void OnUpdateDialhome(CCmdUI* pCmdUI);
	afx_msg void OnUpdateEmail(CCmdUI* pCmdUI);
	afx_msg void OnUpdateProperties(CCmdUI* pCmdUI);
	afx_msg void OnUpdateDelete(CCmdUI* pCmdUI);
	afx_msg void OnUpdateDial(CCmdUI* pCmdUI);

#ifndef _DEBUG  // debug version in AddressView.cpp
inline CAddressDoc* CAddressView::GetDocument()
   { return (CAddressDoc*)m_pDocument; }


// Microsoft Developer Studio will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_ADDRESSVIEW_H__DDB8607D_B0EF_11D2_9848_008048E6DC7F__INCLUDED_)

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.


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Xavier John
Software Developer
United States United States
No Biography provided

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.150603.1 | Last Updated 7 Aug 2000
Article Copyright 1999 by Xavier John
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid