1. Win32Lib: How make minimal "file viewer"?
I'd like to make a (simple) minimal file viewer to use in a Win32Lib
program; what I'd like it to do is:
1. Allow selection of file to view (I can do this, with the "open file"
dialog);
2. Read the file & put the contents into a control (I should be able to do
this ok, too);
3. Allow text SELECTION and COPY (to clipboard) from the viewed file;
(I see copy to clipboard function, but don't know how to specify some
text is SELECTED)
4. DISALLOW text entry, paste (into the viewed file), and file save;
The point is to enable VIEWING a file and copying FROM it, without allowing
the file itself to be changed in the process.
Is there a simple way to do this, such as using existing controls, with
alternative parameters set (those arcane style things like: WS_CHILD,
ES_LEFT,ES_MULTILINE)? I Don't want to have to re-invent the wheel if it's
already been done.
Dan Moyer