Environment: Windows 98, Visual C++ 5.0
A fine class for lazy operators :)
This class is generated starting from CEdit, and can store up to 128 (but
it's possible to change this limit) words; it's use is really easy: all you have
to do are the following steps:
- design your own CDialog or CFormView (or derived class) inserting the standard editbox;
- include AFEdit.h & AFEdit.cpp in your project;
- in the CXYZ.h file generated for the dialog (or view) include AFEdit.h and replace all CEdit with CAFEdit;
- in the OnInitDialog (or OnInitialUpdate) add the strings you want to be inserted in the words list for each editbox;
Every time you insert a new word in a specific editbox, the relative list will growth if necessary (no duplication). Of cource, if the class is deleted all data are lost. I tested it in a multiline editbox too, and it works fine.
There is only one known problem: in a multiline editbox the pair CTRL-TAB
insters a tab int the text, the source I wrote isn't still able to intercept
that couple :(
In debug mode a doubleclick on an editbox shows a dialog with the entire list.