Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Redo option for text editor using Ms Visual C++

Status
Not open for further replies.

palmersheila

Technical User
Nov 30, 2003
12
MY
When I used the wizard to develop the text editor, it only had the undo function. I want add the redo function as well.
And I realized that let's say if you typed 's' and then you clicked undo, the 's' would be gone and then if you were to click undo again the 's' would reappear. But actually for the latter the 's' would reappear if you were to click redo. How do I integrate the redo function in my text editor?
 
you should subclass the control.

Ion Filipski
1c.bmp
 
you should change the old window procedure of that window to some new WndProc by using SetWindowLong/GetWindowLong. Any messages you want to intercept, handle as in an usual WndProc. Any other messages you should forward with CallWindowProc to the old window procedure.

Ion Filipski
1c.bmp
 
Do you have any sample source code which I can refer to? I am really desperate as this is due next Mon.
 
Look at the CRichEditControl, I belive it is all taken care of.

Matt
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top