|
-
Aug 1st, 2003, 07:27 PM
#1
Thread Starter
Hyperactive Member
Need api constant for returning listview columns count
Im passing the hwnd of a listview to a csutom made dll which then fills the listview via sendmessage api calls. I found the api constants for this here:
http://www.mvps.org/vbnet/code/comctl/lvmembers.htm
But now I need to retrieve the listview.columns.count property.
Anybody have any idea on how to do this via api or how to find the correct constant to use with sendmessage.
-
Aug 1st, 2003, 07:42 PM
#2
VB Code:
Private Const HDM_FIRST = &H1200
Private Const HDM_GETITEMCOUNT = (HDM_FIRST + 0)
wParam = 0
lParam = 0
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
Take credit, not responsibility
-
Aug 2nd, 2003, 04:07 PM
#3
Thread Starter
Hyperactive Member
crptcblade, won't that return the listcount? I need the column count.
-
Aug 2nd, 2003, 04:19 PM
#4
Nope, LVM_GETITEMCOUNT will return the listcount.
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
Take credit, not responsibility
-
Aug 2nd, 2003, 11:11 PM
#5
Thread Starter
Hyperactive Member
sweet, I'll try it out.
Can you tell me how to come about these constants myself?
-
Aug 3rd, 2003, 06:30 AM
#6
I looked in the header files that come with Visual C++. Other than looking in those header files, I have no idea.
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
Take credit, not responsibility
-
Aug 3rd, 2003, 04:05 PM
#7
Thread Starter
Hyperactive Member
Originally posted by crptcblade
I looked in the header files that come with Visual C++. Other than looking in those header files, I have no idea.
thanks, crptcblade. That info is very much appreciated.
-
Aug 3rd, 2003, 04:17 PM
#8
Stuck in the 80s
This is a very good program for API constants. This is a very good program for API declarations and examples.
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
|