List API
Updated Monday December 26, 2011
   
Category Topic


CoolTabs
vb6
vb5
vb4-32
vb4-16*
vb3*
VBnet CoolTabs Utility
Use this utility to format the tabstops in a list or textbox.

* Although CoolTabs can generate the code required for older editions of VB, note that all API declarations and API constants generated by the CoolTabs utility must be replaced with the proper 16-bit Windows API equivalents. Also, don't get bitten by the fact that some of the LB_* and EM_* message constant values changed between 16- and 32-bit Windows.



List Alignment
vb6
vb5
vb4-32
How to Set Tabstops in a ListBox
Wanted your multi-column list data to line up in list box without using a fixed-width font? This page shows how using SendMessage. Aug 27.1998 

GetTextExtentPoint32: Right-Align List Box Data
Quick method to cause a list box to right-align its contents.  Oct 1.2001

SetWindowLong: Right-Align List Box Data and/or the Scrollbar
Another method to right-align a list box contents, this time by twiddling the list extended style bit. Nov 3.2001



List Scrolling
vb6
vb5
vb4-32
SendMessage: Display the List Box Horizontal Scroll Bar
Use this SendMessage/LB_SETHORIZONTALEXTENT routine to add a correctly-sized horizontal scrollbar to a list box. Oct 7.1999

SendMessage: Display the List Box Horizontal Scroll Bar if Needed
An advanced routine that provides a replacement AddItem method for assuring that the longest item added to a list always recalculates the correctly-sized horizontal scrollbar. Oct 7.1999



List Selections
vb6
vb5
vb4-32
SendMessage: Right-Click List Item Selection
Using SendMessage to detect the list item beneath the mouse cursor. April 21.1999 vb4-32, vb5, vb6 only

LBItemFromPt: Right-Click List Item Selection
Using LBItemFromPt to detect the list item beneath the mouse cursor. April 22.1999 vb4-32, vb5, vb6 only

LBItemFromPt: Right-Click List Item Selection from Any Routine
Using LBItemFromPt to detect the list item beneath the mouse cursor in other than a mouse event. April 23.1999  vb5, vb6 only



List - Misc
vb6
vb5
vb4-32
SendMessage: Duplicate List Contents to Another List or Combo
API wrapper functions to copy a list's contents to either another list or combo. May 11.1999

SendMessage: Clearing or Selecting All Items in a List Box
Ever wished you had a fast way of learning all the selections from a MultiSelect list box or File List box? Here's your answer. Jan 8.1997

SendMessage: Quickly Find List Box Items using Full or Partial Matching
Locate exact or near-matching strings in a list box using the SendMessage API.  Jan 8.1997

SendMessage: Instantly Fill a List with Files, Folders or Drives
The title says it all!  Dec 26.96 

BitBlt: Present a Non-Selectable 'No Data' Picture in a ListBox
Simulate some of the listview's LVBKIMAGE functionality in a list box.  Nov 29.2003 

SendMessage: Quickly Retrieve Multiple List Box Selections
Get the list indices of all selected items in a MultiSelect list box with this tiny routine. Aug 8.1998



 

 
 

PayPal Link
Make payments with PayPal - it's fast, free and secure!

 
 
 
 

Copyright ©1996-2011 VBnet and Randy Birch. All Rights Reserved.
Terms of Use  |  Your Privacy

 

Hit Counter