kPad - Lightweight Text Editor | CodeGuru

kPad – Lightweight Text Editor

Brief Overview kPad, a lightweight text editor loosely based on the MTPad sample from the Microsoft SDK (12/1/99) allows you to read and manipulate RTF and TXT files using a RichEdit control. However, kPad’s main focus is as an example of what you can do using the WTL. Features Sheets control Find and Replace custom […]

Written By
CodeGuru Staff
CodeGuru Staff
Aug 6, 2000
1 minute read
CodeGuru content and product recommendations are editorially independent. We may make money when you click on links to our partners. Learn More

kPad

Brief Overview

kPad, a lightweight text editor loosely based on the MTPad sample from the
Microsoft SDK (12/1/99) allows you to read and manipulate RTF and TXT
files using a RichEdit control. However, kPad’s main focus is as an example
of what you can do using the WTL.

Features

  • Sheets control
  • Find and Replace custom dialogues
  • Small size 104 kilobytes

Implementation

  • This project was created with the help ATL\WTL AppWizard as a "Multiple Threads SDI
    " application with a generic view window.
  • The class SheetsCtrl is view window for the MainFrame and a container for the SheetView
    child windows.
  • SheetView is a superclass of the RichEdit control
  • The small size of 105 kilobytes is achieved due to the WTL’s non-usage of 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 January MS SDK.
  • It has been tested only on W2k.
Advertisement

Acknowledgments

WTL Sites References

Downloads

Download demo project – 52 Kb

Download source – 79 Kb

CodeGuru Logo

CodeGuru covers topics related to Microsoft-related software development, mobile development, database management, and web application programming. In addition to tutorials and how-tos that teach programmers how to code in Microsoft-related languages and frameworks like C# and .Net, we also publish articles on software development tools, the latest in developer news, and advice for project managers. Cloud services such as Microsoft Azure and database options including SQL Server and MSSQL are also frequently covered.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.