Click here to Skip to main content
13,006,281 members (57,265 online)
Click here to Skip to main content

Stats

48.9K views
1K downloads
33 bookmarked
Posted 7 Jul 2006

Notifying the Document

, 12 Jul 2006
An article on delivering objects to the document in a document/view architecture, using the WM_NOTIFY message.
#pragma once

#define NOTIFY_OBJECT_SCHEMA 100 

class CNotifyObject ;

typedef struct tagNMHDROBJECT
{
	NMHDR nmHdr ;
	CNotifyObject * pObject ; 
} NMHDROBJECT ;

typedef NMHDROBJECT * LPNMHDROBJECT ;
// CNotifyObject command target

class CNotifyObject : public CObject
{
	DECLARE_SERIAL(CNotifyObject) 
protected:
	CNotifyObject();
public:
	NMHDROBJECT m_hdrObject ; 
public:
	CNotifyObject( NMHDR & Hdr );
	CNotifyObject( const CNotifyObject & Object );
	virtual ~CNotifyObject();

	UINT get_Message() ;
	CNotifyObject & operator = ( const CNotifyObject & Object ) ;
protected:
	void Copy( const CNotifyObject & Object ) ; 

	UINT m_Message ; 


};


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, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Michael Bergman
Software Developer (Senior)
United States United States
No Biography provided

You may also be interested in...

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.170628.1 | Last Updated 12 Jul 2006
Article Copyright 2006 by Michael Bergman
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid