Click here to Skip to main content
16,006,378 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Get out of infinite loop question! Pin
PJ Arends31-Jan-05 7:13
professionalPJ Arends31-Jan-05 7:13 
GeneralRe: Get out of infinite loop question! Pin
Aneurysm0031-Jan-05 7:17
Aneurysm0031-Jan-05 7:17 
GeneralRe: Get out of infinite loop question! Pin
Tim Smith31-Jan-05 13:44
Tim Smith31-Jan-05 13:44 
Questionhow to add a menu to a CDialogBar Pin
vieira_alice31-Jan-05 5:51
vieira_alice31-Jan-05 5:51 
AnswerRe: how to add a menu to a CDialogBar Pin
JohnCz31-Jan-05 14:19
JohnCz31-Jan-05 14:19 
GeneralUndo Pin
act_x31-Jan-05 5:41
act_x31-Jan-05 5:41 
GeneralRe: Undo Pin
PJ Arends31-Jan-05 6:07
professionalPJ Arends31-Jan-05 6:07 
GeneralRe: Undo Pin
Maximilien31-Jan-05 6:47
Maximilien31-Jan-05 6:47 
since "undo" is a vast and sometimes complex domain, I suggest that you examine the following :

Undoing an operatation depends on the way the operation was done initially.

for example, you do a "create something" operation/command, the undo operation/command might simply be a cut or a remove, or worse, an "uncreate something"; do after that, if you go furher, what is the undo of the undo ( redo ); is it do a "create something" again ? or a paste or something ?

in my opinion, a good undo/redo system depends on the way you handle the different commands ( or actions) in your application.

for example, in a DB, you create a new record, the command that creates the record should contain as much context as possible so that you can recreate the record without any user action.

if you look from the other side.

you remove a record and do an undo, what is the result command ? is it a "create record" or something like a "paste" ?
...

so there are a lot going on here...



Maximilien Lincourt
Your Head A Splode - Strong Bad
GeneralProblem with file output Pin
RealityGamma31-Jan-05 5:29
sussRealityGamma31-Jan-05 5:29 
GeneralRe: Problem with file output Pin
PJ Arends31-Jan-05 6:18
professionalPJ Arends31-Jan-05 6:18 
GeneralRe: Problem with file output Pin
RealityGamma31-Jan-05 7:34
sussRealityGamma31-Jan-05 7:34 
GeneralRe: Problem with file output Pin
David Crow31-Jan-05 9:23
David Crow31-Jan-05 9:23 
GeneralAfxBeginThread, Thread Pool and RUNTIME_CLASS Pin
Turtle Hand31-Jan-05 4:22
Turtle Hand31-Jan-05 4:22 
GeneralRe: AfxBeginThread, Thread Pool and RUNTIME_CLASS Pin
PJ Arends31-Jan-05 6:03
professionalPJ Arends31-Jan-05 6:03 
GeneralAutomating MS Access Pin
mcsherry31-Jan-05 4:00
mcsherry31-Jan-05 4:00 
GeneralRe: Automating MS Access Pin
David Crow31-Jan-05 4:29
David Crow31-Jan-05 4:29 
GeneralRe: Automating MS Access Pin
mcsherry31-Jan-05 21:44
mcsherry31-Jan-05 21:44 
GeneralRe: Automating MS Access Pin
David Crow1-Feb-05 3:21
David Crow1-Feb-05 3:21 
GeneralRe: Automating MS Access Pin
Bob Flynn31-Jan-05 5:25
Bob Flynn31-Jan-05 5:25 
QuestionIs this possbile??? Pin
rlepine31-Jan-05 3:26
rlepine31-Jan-05 3:26 
AnswerRe: Is this possbile??? Pin
User 665831-Jan-05 3:40
User 665831-Jan-05 3:40 
GeneralRe: Is this possbile??? Pin
rlepine31-Jan-05 3:45
rlepine31-Jan-05 3:45 
AnswerRe: Is this possbile??? Pin
David Crow31-Jan-05 3:52
David Crow31-Jan-05 3:52 
GeneralRe: Is this possbile??? Pin
rlepine31-Jan-05 3:58
rlepine31-Jan-05 3:58 
Generalmaintaining layout of window Pin
doneirik31-Jan-05 2:36
doneirik31-Jan-05 2:36 

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.