How To Expose Owner-drawn List Boxes by Active Accessibility (196205)
The information in this article applies to:
- Microsoft Platform Software Development Kit (SDK) 1.0, when used with:
- the operating system: Microsoft Windows NT 4.0
This article was previously published under Q196205 SUMMARY
You can use Active Accessibility tools to obtain information from owner-
drawn list boxes. When you create an owner-drawn list box, use the
LBS_HASSTRINGS style. Use the LB_ADDSTRING message to add the text that is
exposed to Active Accessibility clients. This text must not be the owner-
drawn data. Use the LB_SETITEMDATA message to attach owner-drawn data to
the list box.
This method allows for both the owner-drawn data and the text string to
co-exist in the list box. If you need to change the code, you only need to
change LB_GETTEXT to LB_GETITEMDATA to get the owner-drawn data.
REFERENCES
Microsoft Active Accessibility
Modification Type: | Minor | Last Reviewed: | 7/11/2005 |
---|
Keywords: | kbAAcc kbClient kbhowto kbNavigation KB196205 |
---|
|