kPad - A lightweight WTL based text editor






4.97/5 (20 votes)
Aug 6, 2000

372158

10359
An example of using the WTL library and RichEdit control
Introduction
kPad is a lightweight text editor that works with RTF and TXT file formats.
It's an example of using the WTL library and RichEdit control, and is based on the MTPad sample from the Microsoft SDK (12/01/99).
Features
- Sheets control
- Find and Replace custom dialogs
- Small size (104 Kb)
Implementation
With the help of the ATL\WTL AppWizard I created
a "Multiple Threads SDI" project with a generic view window.
The class SheetsCtrl
is a view window for the Main Frame
and a container for kSheetView
child windows.
kSheetView
is a superclass of the RichEdit control.
The small size of 105 Kb is achieved by removing the dependancy on the CRT library (_ATL_MIN_CRT) and use the project options /OPT:REF, /OPT:ICF, /OPT:NOWIN98.
Environment
This application was created with VC 6.0. SP3, WTL and the January MS SDK. It has been tested only on W2k.
Acknowledgments
- Andrew Nosenko - AtlAux library
- Ramon Smits - Cool WTL menu with Gradient Sidebar
- Vladimir Scherbakov - Color pickers dialog
- Girish Bharadwaj - Font combo
- Mihai Filimon - Sheet control
- Juraj Rojko - Syntax coloring Editor
- Ferdinand Prantl – EditPad
- David Hill - Pinnable dialog
- Chris Maunder, Alexander Bischofberger - Color Picker Button
- Kirk W. Stowell - Flat combo