WM_CHARTOITEM Messages Not Received by Parent of List BoxLast reviewed: November 2, 1995Article ID: Q72552 |
The information in this article applies to:
SUMMARYWhen keyboard input is sent to a list box that has the LBS_WANTKEYBOARDINPUT style bit set, its parent does not receive WM_CHARTOITEM messages; however, WM_VKEYTOITEM messages are received. This is because the list box has the LBS_HASSTRINGS style bit set. This behavior is by design. Windows sets the LBS_HASSTRINGS style bit for all list boxes except owner-draw list boxes. An owner-draw list box can be created with this style bit turned on or off. For owner-draw list boxes, the state of the LBS_HASSTRINGS style bit determines which messages are sent. WM_CHARTOITEM messages and WM_VKEYTOITEM messages are mutually exclusive. The documentation for WM_CHARTOITEM states:
Only owner-draw list boxes that do not have the LBS_HASSTRINGS style can receive this message. |
Additional reference words: 3.00 3.10 3.50 3.51 4.00 95 listbox
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |