This is the last week to enter! Be sure to enter at http://www.codeoftheweek.com/contest.html now! If you entered last month, please be sure to enter again because your entry from last month does not count towards the prize this month. The prize is development tools worth over $300.
We had planned on enhancing last week's issue about CD Audio, but we did not finish it in time. Instead we are introducing some API calls that enhance the way the ListView control works.
This source code is designed for VB 4.0 32-bit and up. Questions? Email us at questions@codeoftheweek.com.
The basListView module contain four subroutines that allow you to easily set or reset several new features Microsoft has added to the ListView control. This control is included in the Common Controls library (located in the COMCTL32.DLL). These routines require version 4.70 or greater of this control. It is usually included with Internet Explorer 3.x or 4.x. You can also download them separately at http://msdn.microsoft.com/developer/downloads/files/40Comupd.exe or get some additional information at http://www.codeoftheweek.com/updates/comctl.html
Public Sub lvFullRowSelect(lv As ListView, bFullRowSelectOn As Boolean) Public Sub lvGridLines(lv As ListView, bGridLinesOn As Boolean) Public Sub lvHeaderDragDrop(lv As ListView, bHeaderDragDrop As Boolean) Public Sub lvTrackSelect(lv As ListView, bTrackSelect As Boolean)
Nothing.
Assumes the ListView control you are using is called lvDrives.
lvFullRowSelect lvDrives, True
lvGridLines lvDrives, True
lvHeaderDragDrop lvDrives, True
lvTrackSelect lvDrives, True
To see the source code for this issue you must be a subscriber to Code of the Week. If you are a subscriber the source code is available at the following address: http://www.codeoftheweek.com/membersonly/bi/0071.html