When you start typing in a CTreeCtrl, the item selection moves to highlight the item matching what you have thus far typed. After about 2 seconds, the buffer of what you have typed is reset. This also happens in CListCtrls, Windows directories, the common control dialog for file->open, etc.
I have populated a tree control with many items. Each item has several words, but all items are unique.
When I start typing "Document" it selects the first document (Document ID) properly, but when I hit the spacebar, the control beeps at me, and doesn't allow me to simply type "V" to select "Document Version".
I have read in a few articles on Codeguru that spacebar has been used to check and uncheck items, though I'm not sure if this is its true purpose or not.
How can I add the space to the typedown buffer so I can simple type "Document V" to select the Document Version in my CTreeCtrl derived class.
I already have easy access to code from codeguru.com and codeproject.com that show how I might create, from scratch, searching functions all myself. I suppose I could generate a 2 second delay watch, and maintain my own buffers to hold the typedown text, but I post here in the hopes that someone has a better solution.
This code will be used in a development team environment, so the less code there is (and the more we use MFC stuff), the earier it will be to maintain. So, I will not accept the simple answer of just recoding the whole typedown, especially since I can already do this myself...
More or less, to be able to append a space to the internal buffer kept by MFC when using Typedown on a CTreeCtrl.
I have set the initial points at 200, but if this is not enough, I will raise it.