|
-
Feb 2nd, 2004, 09:01 PM
#1
Thread Starter
Frenzied Member
[VB] listview hack
Public Const LVM_FIRST = &H1000
Public Const LVM_SETCOLUMNWIDTH = (LVM_FIRST + 30)
Public Const LVSCW_AUTOSIZE = -1
Public Const LVSCW_AUTOSIZE_USERHEADER = -2
Public Const LVM_GETHEADER = (LVM_FIRST + 31)
Declare Function SendMessage Lib "user32.dll" Alias _
"SendMessageA" (ByVal hWnd As Long, _
ByVal Msg As Long, ByVal wParam As Long, _
ByVal lParam As Long) As Long
Public Sub ResizeHeader(boolFirstColVisible As Boolean, lstv As ListView)
Dim lColumn As Long
Dim lCounter As Long
If boolFirstColVisible Then lCounter = 0 Else lCounter = 1
For lColumn = lCounter To lstv.ColumnHeaders.Count - 1
SendMessage lstv.hWnd, _
LVM_SETCOLUMNWIDTH, _
lColumn, _
LVSCW_AUTOSIZE_USERHEADER
Next
End Sub
-
Feb 3rd, 2004, 03:23 PM
#2
Supreme User
and what exactly does the hack do then?
-
Feb 3rd, 2004, 03:48 PM
#3
Thread Starter
Frenzied Member
-
Feb 3rd, 2004, 03:50 PM
#4
Supreme User
-
Feb 4th, 2004, 05:08 PM
#5
Thread Starter
Frenzied Member
-
Feb 4th, 2004, 05:08 PM
#6
Thread Starter
Frenzied Member
you cant do that normally
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|