Click here to Skip to main content
13,768,886 members
Click here to Skip to main content

Stats

81.2K views
1.1K downloads
49 bookmarked
Posted 24 Nov 2008
Licenced CPOL

The SBJ MVC Framework - The Model, from Abstraction to Realization

, 20 Mar 2009
A Model-View-Controller Framework that integrates with the MFC Doc/View architecture
XmlMvc2090.dll
Shapes.exe
SbjCore2090.dll
Shapes
Data
res
buttons.bmp
filelarge.bmp
filesmall.bmp
filesmall.png
main.bmp
Shapes.ico
ShapesDoc.ico
Toolbar.bmp
Toolbar256.bmp
treeimages.bmp
vssver.scc
Write - Copy.png
Write.png
Write1.png
writelarge.bmp
writesmall - Copy.bmp
writesmall - Copy.png
writesmall.bmp
writesmall.png
Shapes.vcproj
XmlMvc
res
vssver.scc
XmlMvc.vcproj
SbjCore
Registry.H
res
bigcat.ico
main.bmp
properties.bmp
properties_hc.bmp
properties_wnd_hc.ico
vssver.scc
SbjCore.vcproj
CommonSettings.vsprops
CommonAppDebugSettings.vsprops
CommonAppReleaseSettings.vsprops
CommonDLLDebugSettings.vsprops
CommonDLLReleaseSettings.vsprops
//------------------------------------------------------------------------------
// $Workfile: WndMsgHandler.h $
// $Header:  $
//
//	Copyright � 2008 SbjCat
// All rights reserved.
//
//
// *** Authors ***
//	 Steve Johnson
//
// $Revision: $
//
//-----------------------------------------------------------------------------

#pragma once

#include "MessageHandler.h"
#include "WndController.h"

#define CALL_DEFAULT_FIRST() \
	virtual bool OnCallDefaultFirst()\
	{ \
		return true; \
	} \

namespace SbjCore
{
	namespace Mvc
	{
		
		/// WndMsgHandler is an abstract class for Windows messages handled by a WndController class.
		class AFX_EXT_CLASS WndMsgHandler : public MessageHandler
		{
		public:
			virtual ~WndMsgHandler();

			WndController* GetController() const;			
		public:
			LRESULT HandleWndMsg(WPARAM wParam, LPARAM lParam, LRESULT* pResult);
			bool HandleWndMsgPrev(WPARAM wParam, LPARAM lParam, LRESULT* pResult);
			
			bool CallDefaultFirst();
		private:
			virtual LRESULT OnHandleWndMsg(WPARAM wParam, LPARAM lParam, LRESULT* pResult) = 0;	
			virtual bool OnCallDefaultFirst();
		};
	}
}

//*** Modification History ***
// $Log:  $

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

SBJ
United States United States
No Biography provided

You may also be interested in...

Permalink | Advertise | Privacy | Cookies | Terms of Use | Mobile
Web04-2016 | 2.8.181117.1 | Last Updated 20 Mar 2009
Article Copyright 2008 by SBJ
Everything else Copyright © CodeProject, 1999-2018
Layout: fixed | fluid