Multiple Level Undo/Redo West Virginia

Advanced mechanism for implementing undo/redo into your MFC application

Local Companies

Medquist Inc
(304) 296-7550
235 High St
Morgantown, WV
Exypher Technological Industries
(304) 788-4120
Keyser, WV
Strictly Business Computer Systems Inc
(304) 529-0401
611 3rd Ave
Huntington, WV
The Iridium Group
(304) 291-3393
955 Hartman Run Rd
Morgantown, WV
Ncompass Networks
(304) 529-6069
4 Stonecrest Dr
Huntington, WV
UB-04software.com
1.8668292763
UB-04 Software
Richmond, WV
Able Soft Solutions
(304) 720-2680
107 Capitol St
Charleston, WV
Katz Consulting
(304) 346-1900
820 Quarrier St
Charleston, WV
Data Systems Design Inc
(304) 727-5786
518 7th Ave
Saint Albans, WV
Barthelmess Consulting Group
(304) 757-3604
3959 Peays Valley Rd
Hurricane, WV

provided by: 
Originally published at Internet.com


INSTRUCTIONS
These are the steps used in the project file to add multi-level undo/redo capability to the Scribble application.

Copy Files

* Copy scribble tutorial files (I used step 3) into new folder. * Copy "command" and "ref object" files into the folder and add them to the project. You could also put them in a library which would be more convenient. These files are: Command.h Command.cpp CommandHistory.h CommandHistory.cpp RefObject.h RefObject.cpp * Add includes for RefObject.h, Command.h, and CommandHistory.h to stdafx.h

Edit Resources * Add undo/redo buttons to the IDR_MAINFRAME toolbar. Make sure their id's are ID_EDIT_UNDO and ID_EDIT_REDO (there are string table entries for both in MFC). You can grab the images from this project. * Add "&Redo" to the IDR_SCRIBBTYPE edit menu and use ID_EDIT_REDO command id.

CStroke Changes * Derive CStroke from CRefObject instead of CObject * Change CStroke's IMPLEMENT_SERIAL macro to use new base class * Under "Operations" add GetBoundingRect declaration to CStroke: CRect GetBoundingRect() const; * Add CStroke::GetBoundingRect definition to ScribDoc.cpp * Immediately after class definition, add CStrokeList typedef for easy use: typedef CTypedRefObList< CStroke* > CStrokeList; ...

Read article at Internet.com site

Featured Local Company

UB-04software.com

1.8668292763
UB-04 Software
Richmond, WV


Topics: 
Architecture & Design Languages & Tools Project Management Web Services
Database Microsoft & .NET Security Wireless
Java Open Source Techniques XML