Results 1 to 2 of 2

Thread: notepad

  1. #1

    Thread Starter
    Hyperactive Member noble's Avatar
    Join Date
    Nov 2000
    Location
    Philly
    Posts
    471

    notepad

    Does anyone know a place where I can download source code
    for a win32 notepad-like program. A simple text editor is all I
    need written with win32 API not MFC or VCL. I've checked PSC
    but there is nothing that is win32 and non-MFC.

    Thanks for any help.
    Bababooey
    Tatatoothy
    Mamamonkey

  2. #2
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    You could write it yourself. The windows editor is an extremely simple program. It uses a multiline edit control that is automatically resized to the client area during WM_SIZE. Copy, paste, undo etc are simply forwarded to the edit control. The most complicated thing is loading/saving and printing. File operations are performed using the common file dialogs and whatever you want (editor probably uses the CreateFile family). Printing also uses the common dialogs. I don't know how exactly the printing is performed.

    If you look up the edit control in the platform SDK documentation you'll find a nearly complete WndProc you can use.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width