LISTHORZ: Demonstrates Scrolling in List Boxes
LISTHORZ lets you add strings to, and delete strings from, a list box. The application window contains a text box, a list box, and Add and Delete buttons. To add a string to the list box, type the string into the text box and click Add. To delete a string from the list box, select the string and click Delete. If the number of strings in the list box exceeds the size of the list box, a vertical scroll bar appears. If a string is longer than the width of the list box, a horizontal scroll bar appears.
LISTHORZ also demonstrates horizontal and vertical list box scrolling. The LISTHSCR dynamic link library (DLL) can support any number of scrolling list boxes until it runs out of memory.
LISTHORZ was built and tested under Microsoft(R) Windows(TM) version 3.1.
KEYWORDS: LOGFONT; CreatFontIndirect; SendMessage; GetTextMetrics; GetTextExtent; GetProp; RemoveProp;
{ewc navigate.dll, ewbutton, /Bcodeview /T"Click to open or copy files in the listhorz project." /C"samples}