Click here to Skip to main content
Click here to Skip to main content
 
Add your own
alternative version
Go to top

A Simple, Action Based, Undo/Redo Framework

, 16 Feb 2013
How to use a simple, action based, undo/redo framework
kiswinbin_v_1.zip
kis
kis.dll
kis.lib
KisWinBin_v_1_r_1.zip
KisWinBin_v_1_r_1
kis
kis.dll
kis.lib
kiswinsrc_v_1.zip
KisActionDemo
res
KisActionDemo.ico
KisActionDemoDoc.ico
Toolbar.bmp
vssver.scc
KisWinSrc_v_1_r_1.zip
KisWinSrc_v_1_r_1
kis
KisActionDemo
res
KisActionDemo.ico
KisActionDemoDoc.ico
Toolbar.bmp
vssver.scc
/*
***************************************************************************

kis v 1

(c) 2006, Florin DUMITRESCU

mailto: fdproxy@gmail.com

$Workfile: KisActionDemoView.h $ 

***************************************************************************
*/


#pragma once


class CKisActionDemoView : public CView
{

	DECLARE_DYNCREATE(CKisActionDemoView)
	DECLARE_MESSAGE_MAP()

public:
	CKisActionDemoDoc* GetDocument() const;
	CKisActionDemoView();
	virtual ~CKisActionDemoView();

#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:
  static CBitmap s_OsbBmp;
  static CDC s_OsbDc;
  static void _PrepareOsb( CDC* a_pDC, CRect* a_pRect );

  virtual void OnInitialUpdate();
  afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
  afx_msg BOOL OnEraseBkgnd(CDC* pDC);
	virtual void OnDraw(CDC* pDC);
	virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
	virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
  
};


#ifndef _DEBUG  // debug version in KisActionDemoView.cpp
inline CKisActionDemoDoc* CKisActionDemoView::GetDocument() const
   { return reinterpret_cast<CKisActionDemoDoc*>(m_pDocument); }
#endif

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

zdf

Romania Romania
Just a humble programmer.

You may also be interested in...

| Advertise | Privacy | Mobile
Web03 | 2.8.140916.1 | Last Updated 16 Feb 2013
Article Copyright 2006 by zdf
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid