I have a problem with list boxes that resides within a control bar. I want
them to respond to arrow keys and mouse wheel to scroll up and down, but
they never seem to get the messages. It occured to me that this has to do
with the window focus and message routing. The mainframe or MDI child window
remains the focus window even if you click on a control bar. So that is
where the WM_CHAR and WM_MOUSEWHEEL messages arrive.
If you look in DevStudio, things are working just fine. If you click in the
class tree, you can use the arrow keys to scroll up and down in the tree, if
you click in a source window (MDI child), you can use the arrow keys to
scroll up and down in your code. So there has to be a "secondary focus"
mechanism somewhere, but I just can't seem to find it. GetFocus() or
GetActiveWindow() doesn't do it, 'cos I've tried them.
Any clues ?
Bendik