I'm trying to create an IDE with support for autocompletion similar to Visual C++. It's an MDI application that uses CRichEditView. I created my own class CComplete that inherits from CListBox. I'm able to popup the listbox and fill it with the appropriate words but I have a couple problems. First off, my CComplete class does not respond to the Escape key. I handle the WM_KEYDOWN message and it responds to every key except for VK_ESCAPE. Second, if I set the CRichEditView as the parent of CComplete then the listbox will only be drawn inside the view and will be cutoff if it goes outside the views frame. I fixed this by setting the main window as the parent, but then the list box wouldn't respond to mouse clicks. Any ideas?