How To Expose Owner-drawn List Boxes by Active Accessibility
Article ID: 196205
Article Last Modified on 7/11/2005
APPLIES TO
- Microsoft Platform Software Development Kit-January 2000 Edition, when used with:
- Microsoft Windows 98 Standard Edition
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
Keywords: kbhowto kbnavigation kbaacc kbclient KB196205