| Enhanced rich edit control |
| Written by Filomela |
| Friday, 30 January 2009 16:00 |
Introduction
I needed a dialog box app based on RichEdit control. I have searched over the Net and I found Jeremy Iverson"s article. I downloaded the code and studied it. It was not what I have needed but it was a good start point. So, my app is a kind of a RTF word processor. It has menus, toolbar, status bar etc. You can print the file, open and save a file, you can choose any fonts you want from Edit--- Format Font. If you close a file and you didn"t save it the program asks if you want to save the file; the program has tooltips; if text is selected the Cut and Copy buttons are enabled, the program updates the message from statusbar. On the title bar appears the opened file path. If you want to save your file with the name of an existing one my program will ask if you want to overwrite the file. My program has accelerator table taken from MSDN sample - Mfccalc - DetailsThis class has the following functions:
Using the controlHere"s how to use this control in a dialog.
I have learned a lot making this program. I needed a toolbar and status bar in my app and I have taken the code from MSDN sample --- dlgcbr32. What I haven"t done is menu with icons because I don"t know how to do it. Maybe you will succeed and if so, let me know. ConclusionMy program was compiled with Visual C++ 6 and under Windows 95. You know the rule: you are free to use and modify this source code. If you make any enhancements, I would appreciate if you let me know. Of course, this control is provided as is, and no warranty is expressed or implied. Happy programming! History
Something wrong with this article? Report it
Set as favorite
Bookmark
Email This
Hits: 124 0 Comments
Write comment
You must be logged in to a comment. Please register if you do not have an account yet.
|
| Last Updated on Friday, 06 February 2009 16:00 |
Latest Articles
- AntiHisto
- Thumbnail images in PHP
- Online Dating Websites
- Hack to enforce the cache of an XmlDataSource to invalidate
- AutoSearch SELECT tag
- Nine ASP.NET Site Navigation Problem Solutions: Part 1
- Enhanced rich edit control
- CheckListBox based on ListBox that supports ReadOnly
- Introduction to COM - What It Is and How to Use It.
- Introduction to the Validation Application Block


