Click to See Complete Forum and Search --> : notepad
noble
Jan 24th, 2002, 07:10 AM
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.
CornedBee
Jan 24th, 2002, 11:30 AM
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.
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.