Click here to Skip to main content
11,502,201 members (61,032 online)
Click here to Skip to main content

kPad - A lightweight WTL based text editor

, 5 Aug 2000 316.7K 9.2K 82
Rate this:
Please Sign up or sign in to vote.
An example of using the WTL library and RichEdit control
<!-- Download Links -->
  • Download source files - 79 Kb
  • Download demo project - 52 Kb
  • <!-- Article image -->

    Sample Image - kPad.gif

    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

    WTL Sites References

    License

    This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

    A list of licenses authors might use can be found here

    Share

    About the Author

    Konstantin Boukreev
    Web Developer
    Russian Federation Russian Federation
    I am freelance programmer. About 3 years of experience in C++ and I would rather use ATL, STL, WTL but not MFC Smile | :) . Main backgrounds are Win32 API, COM and Networking. Now I am interested about AI (Neural Network, Fuzzy Logic and GA). Currently based in Vladivostok, Russia.

    Comments and Discussions

     
    GeneralBuilding with WTL 7.1 / VS.NET 2003 Pin
    Matt Bishop12-May-04 11:26
    memberMatt Bishop12-May-04 11:26 
    GeneralRe: Building with WTL 7.1 / VS.NET 2003 Pin
    089890882-Mar-08 19:30
    member089890882-Mar-08 19:30 
    GeneralT_SafeVector.h missing Pin
    leonqiu19-Feb-04 6:34
    memberleonqiu19-Feb-04 6:34 
    GeneralRe: T_SafeVector.h missing Pin
    narendr30-Jun-04 12:59
    sussnarendr30-Jun-04 12:59 
    GeneralOLE support Pin
    VolkerB1-Feb-03 11:00
    memberVolkerB1-Feb-03 11:00 
    QuestionWhen we program with WTL, can we use STL? Pin
    Anonymous20-Sep-02 7:22
    sussAnonymous20-Sep-02 7:22 
    AnswerRe: When we program with WTL, can we use STL? Pin
    Tim Smith20-Sep-02 8:01
    memberTim Smith20-Sep-02 8:01 
    GeneralGdiGradientFill entry point not found.. Pin
    Wayne Davis15-May-02 1:46
    memberWayne Davis15-May-02 1:46 
    GeneralRe: GdiGradientFill entry point not found.. Pin
    Anonymous8-Aug-02 14:06
    sussAnonymous8-Aug-02 14:06 
    Generalatlres.h not in source code Pin
    Kyung Bae Park9-May-02 15:09
    memberKyung Bae Park9-May-02 15:09 
    GeneralRe: atlres.h not in source code Pin
    Jose Cruz28-Oct-02 11:31
    memberJose Cruz28-Oct-02 11:31 
    Generalw2k: one predefinition is missing Pin
    gok22-Apr-02 10:11
    membergok22-Apr-02 10:11 
    General31 errors Pin
    Anonymous10-Apr-02 6:14
    memberAnonymous10-Apr-02 6:14 
    Generalcompiling errors Pin
    Altair_Liu8-Apr-02 17:50
    memberAltair_Liu8-Apr-02 17:50 
    GeneralCompiling error Pin
    Anonymous17-Mar-02 4:14
    memberAnonymous17-Mar-02 4:14 
    GeneralI get 31 errors. Pin
    The Eclypse27-Aug-01 9:49
    memberThe Eclypse27-Aug-01 9:49 
    GeneralRe: I get 31 errors. Pin
    Konstantin Boukreev27-Aug-01 14:13
    memberKonstantin Boukreev27-Aug-01 14:13 
    GeneralRe: I get 31 errors. Pin
    The Eclypse28-Aug-01 8:43
    memberThe Eclypse28-Aug-01 8:43 
    GeneralRe: I get 31 errors. they keep coming Pin
    The Eclypse29-Aug-01 10:55
    memberThe Eclypse29-Aug-01 10:55 
    GeneralRe: I get 31 errors. they keep coming Pin
    Konstantin Boukreev29-Aug-01 14:24
    memberKonstantin Boukreev29-Aug-01 14:24 
    GeneralRe: I get 31 errors. they keep coming Pin
    The Eclypse29-Aug-01 21:58
    memberThe Eclypse29-Aug-01 21:58 
    GeneralRe: I get 31 errors. they keep coming Pin
    Konstantin Boukreev29-Aug-01 22:15
    memberKonstantin Boukreev29-Aug-01 22:15 
    GeneralRe: I get 31 errors. they keep coming Pin
    The Eclypse29-Aug-01 23:33
    memberThe Eclypse29-Aug-01 23:33 
    GeneralRe: I get 31 errors. they keep coming Pin
    jema7-Mar-04 21:49
    memberjema7-Mar-04 21:49 
    GeneralRe: I get 31 errors. they keep coming Pin
    spyderdan24-Aug-04 14:00
    memberspyderdan24-Aug-04 14:00 
    GeneralA God! Pin
    partnerInFlight19-Aug-01 17:51
    memberpartnerInFlight19-Aug-01 17:51 
    Generalhyperlinks Pin
    Anonymous19-Aug-01 11:51
    memberAnonymous19-Aug-01 11:51 
    QuestionWhere can I download WTL? Pin
    Anaki9-Dec-00 1:57
    memberAnaki9-Dec-00 1:57 
    AnswerRe: Where can I download WTL? Pin
    Marc9-Dec-00 7:19
    memberMarc9-Dec-00 7:19 
    GeneralRe: Where can I download WTL? Pin
    Anonymous10-Dec-00 0:38
    memberAnonymous10-Dec-00 0:38 
    GeneralRe: Where can I download WTL? Pin
    yogz19-Nov-01 12:20
    memberyogz19-Nov-01 12:20 
    GeneralRe: Where can I download WTL? Pin
    Kant18-Mar-03 18:00
    memberKant18-Mar-03 18:00 
    GeneralWin2k Pin
    Boris Vidolov18-Aug-00 2:49
    sussBoris Vidolov18-Aug-00 2:49 
    GeneralMissing DLL Pin
    Boris Vidolov18-Aug-00 2:42
    sussBoris Vidolov18-Aug-00 2:42 
    GeneralRe: Missing DLL Pin
    Ansgar7-Sep-00 4:37
    sussAnsgar7-Sep-00 4:37 
    GeneralVery good WTL sample! Pin
    Ideal7-Aug-00 16:00
    sussIdeal7-Aug-00 16:00 

    General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

    Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

    | Advertise | Privacy | Terms of Use | Mobile
    Web04 | 2.8.150520.1 | Last Updated 6 Aug 2000
    Article Copyright 2000 by Konstantin Boukreev
    Everything else Copyright © CodeProject, 1999-2015
    Layout: fixed | fluid