Click here to Skip to main content
15,918,889 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: hiding or locking files/folders/drives Pin
Monty210-May-04 21:51
Monty210-May-04 21:51 
GeneralRe: hiding or locking files/folders/drives Pin
kanetheterrible111-May-04 6:34
kanetheterrible111-May-04 6:34 
QuestionHow do I get the DSN auth mode in VC++ code Pin
PrashantJ10-May-04 20:56
PrashantJ10-May-04 20:56 
GeneralHelp Regarding MFC Pin
balajeedurai10-May-04 20:44
balajeedurai10-May-04 20:44 
GeneralRe: Help Regarding MFC Pin
Monty210-May-04 21:16
Monty210-May-04 21:16 
GeneralMULTIPLE UNDO Pin
Ventsislav10-May-04 20:19
Ventsislav10-May-04 20:19 
GeneralRe: MULTIPLE UNDO Pin
Maxwell Chen10-May-04 20:34
Maxwell Chen10-May-04 20:34 
GeneralRe: MULTIPLE UNDO Pin
Maximilien11-May-04 0:33
Maximilien11-May-04 0:33 
Think about "commands"

for example, when typing text, you can make each character or word an "Insert Command", undoing this, will trigger another command, "Delete Text Command" and its undo command is the "Insert Text" ... you see the pattern ...

Each command must know the context and must be "self sufficiant" as much as possible, for example, "Insert Command" will have the text, and the position of insertion.

You need to implement a stack of commands ( written in the other answer ), on which you push and pop the commands.

From There, you can easilly implement the redo .


Maximilien Lincourt
Your Head A Splode - Strong Bad
GeneralRe: MULTIPLE UNDO Pin
Miguel Lopes11-May-04 3:22
Miguel Lopes11-May-04 3:22 
Generalchange dialog caption Pin
Mughi10-May-04 20:01
Mughi10-May-04 20:01 
GeneralRe: change dialog caption Pin
Ionut L.10-May-04 20:16
Ionut L.10-May-04 20:16 
GeneralRe: change dialog caption Pin
Mughi10-May-04 20:46
Mughi10-May-04 20:46 
Questionhow to respond to keyboard message in the dialog application Pin
laia10-May-04 19:34
laia10-May-04 19:34 
AnswerRe: how to respond to keyboard message in the dialog application Pin
Ionut L.10-May-04 20:12
Ionut L.10-May-04 20:12 
Questionhow to convert AVI file to other Format Pin
Anonymous10-May-04 18:50
Anonymous10-May-04 18:50 
AnswerRe: how to convert AVI file to other Format Pin
erkanina10-May-04 21:34
erkanina10-May-04 21:34 
GeneralProblem in making image from Memory Pin
Member 130873610-May-04 18:10
Member 130873610-May-04 18:10 
GeneralRe: Problem in making image from Memory Pin
erkanina10-May-04 21:40
erkanina10-May-04 21:40 
GeneralQUIZ TEST YOUR KNOWLEDGE!!!!!!!!!!!!!!!!! Pin
Opwar10-May-04 17:20
Opwar10-May-04 17:20 
GeneralRe: QUIZ TEST YOUR KNOWLEDGE!!!!!!!!!!!!!!!!! Pin
Maxwell Chen10-May-04 17:30
Maxwell Chen10-May-04 17:30 
GeneralRe: QUIZ TEST YOUR KNOWLEDGE!!!!!!!!!!!!!!!!! Pin
22491710-May-04 18:42
22491710-May-04 18:42 
GeneralRe: QUIZ TEST YOUR KNOWLEDGE!!!!!!!!!!!!!!!!! Pin
Maximilien11-May-04 0:34
Maximilien11-May-04 0:34 
GeneralRe: QUIZ TEST YOUR KNOWLEDGE!!!!!!!!!!!!!!!!! Pin
jan larsen11-May-04 0:56
jan larsen11-May-04 0:56 
GeneralRe: QUIZ TEST YOUR KNOWLEDGE!!!!!!!!!!!!!!!!! Pin
Opwar11-May-04 1:44
Opwar11-May-04 1:44 
GeneralRe: QUIZ TEST YOUR KNOWLEDGE!!!!!!!!!!!!!!!!! Pin
ThatsAlok3-May-05 21:27
ThatsAlok3-May-05 21:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.