Pressing 'G' in a list box will make the caret jump to the first item starting with 'G'. How do I disable/override this?

/Hugin
Posted on 2004-01-06 17:32:25 by Hugin
easiest way i guess would be to subclass the window and discard the keypress on the WM_KEYDOWN message
Posted on 2004-01-06 17:39:45 by evlncrn8
Even easier way is to filter the WM_KEYDOWN and WM_CHAR messages within your MessagePump.

To be precise, your Windows Messages loop is responsible for dispatching all of your application's control messages to the appropriate controls. You can remove them from the message queue and NOT Dispatch them.

It's always easier to NOT do something, if it achieves the same result, even better.
Posted on 2004-01-06 20:36:22 by Homer