Click here to Skip to main content
Licence 
First Posted 5 Aug 2000
Views 292,850
Bookmarked 69 times

kPad - A lightweight WTL based text editor

By | 5 Aug 2000 | Article
An example of using the WTL library and RichEdit control
  • Download source files - 79 Kb
  • Download demo project - 52 Kb
  • 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

    About the Author

    Konstantin Boukreev

    Web Developer

    Russian Federation Russian Federation

    Member

    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.

    Sign Up to vote   Poor Excellent
    Add a reason or comment to your vote: x
    Votes of 3 or less require a comment

    Comments and Discussions

     
    You must Sign In to use this message board. (secure sign-in)
     
    Search this forum  
     FAQ
        Noise  Layout  Per page   
      Refresh
    GeneralBuilding with WTL 7.1 / VS.NET 2003 PinmemberMatt Bishop11:26 12 May '04  
    GeneralRe: Building with WTL 7.1 / VS.NET 2003 Pinmember0898908819:30 2 Mar '08  
    GeneralT_SafeVector.h missing Pinmemberleonqiu6:34 19 Feb '04  
    GeneralRe: T_SafeVector.h missing Pinsussnarendr12:59 30 Jun '04  
    GeneralOLE support PinmemberVolkerB11:00 1 Feb '03  
    QuestionWhen we program with WTL, can we use STL? PinsussAnonymous7:22 20 Sep '02  
    AnswerRe: When we program with WTL, can we use STL? PinmemberTim Smith8:01 20 Sep '02  
    GeneralGdiGradientFill entry point not found.. PinmemberWayne Davis1:46 15 May '02  
    I've seen KPAD work perfectly on Windows 2000, but I'm stuck with NT4.0 SP6 for at least another month or two. Compiling with VC 6 is no problem thanks to the latest SDK but I'm having a run-time error JUST on NT.
     
    The error message says:
    "The procdure entry point GdiGradientFill could not be located in the dynamic link library GDI32.dll"
     
    I tried updateing GDI32.dll but it's locked by Windows and can not be accessed. I also tried adding GDI32.lib to the kpad project in hope of eliminating the need for the dll with no success.
     
    Does anyone know of a way to get around this error?Confused | :confused:
    GeneralRe: GdiGradientFill entry point not found.. PinsussAnonymous14:06 8 Aug '02  
    Generalatlres.h not in source code PinmemberKyung Bae Park15:09 9 May '02  
    GeneralRe: atlres.h not in source code PinmemberJose Cruz11:31 28 Oct '02  
    Generalw2k: one predefinition is missing Pinmembergok10:11 22 Apr '02  
    General31 errors PinmemberAnonymous6:14 10 Apr '02  
    Generalcompiling errors PinmemberAltair_Liu17:50 8 Apr '02  
    GeneralCompiling error PinmemberAnonymous4:14 17 Mar '02  
    GeneralI get 31 errors. PinmemberThe Eclypse9:49 27 Aug '01  
    GeneralRe: I get 31 errors. PinmemberKonstantin Boukreev14:13 27 Aug '01  
    GeneralRe: I get 31 errors. PinmemberThe Eclypse8:43 28 Aug '01  
    GeneralRe: I get 31 errors. they keep coming PinmemberThe Eclypse10:55 29 Aug '01  
    GeneralRe: I get 31 errors. they keep coming PinmemberKonstantin Boukreev14:24 29 Aug '01  
    GeneralRe: I get 31 errors. they keep coming PinmemberThe Eclypse21:58 29 Aug '01  
    GeneralRe: I get 31 errors. they keep coming PinmemberKonstantin Boukreev22:15 29 Aug '01  
    GeneralRe: I get 31 errors. they keep coming PinmemberThe Eclypse23:33 29 Aug '01  
    GeneralRe: I get 31 errors. they keep coming Pinmemberjema21:49 7 Mar '04  
    GeneralRe: I get 31 errors. they keep coming Pinmemberspyderdan14:00 24 Aug '04  

    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.

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