?
Solved

Listview Columns - winapi

Posted on 2002-07-26
7
Medium Priority
?
351 Views
Last Modified: 2006-11-17
How can you retrieve the number of columns in a listview control by using the sendmessage api? I just can't find the message anywhere.


sendmessage (listhwnd, LVM_SOMETHING, lparam, wparam


Stian




0
Comment
Question by:SiWix
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 53

Expert Comment

by:Ryan Chong
ID: 7179568
Why don't just try: ListView1.ColumnHeaders.Count  ?
0
 

Author Comment

by:SiWix
ID: 7179625
I found the answer,

I have to get a handle to the header control, and then use the hdr_getitemcount message to retrieve the number of columns.
0
 
LVL 1

Expert Comment

by:Computer101
ID: 7181153
I have deleted the other 3.  Would you like this PAQ'd

Computer101
E-E Moderator
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 49

Expert Comment

by:DanRollins
ID: 8040660
Hi SiWix,
It appears that you have forgotten this question. I will ask Community Support to close it unless you finalize it within 7 days. I will ask a Community Support Moderator to:

    Accept ryancys's comment(s) as an answer.

SiWix, if you think your question was not answered at all or if you need help, just post a new comment here; Community Support will help you.  DO NOT accept this comment as an answer.
==========
DanRollins -- EE database cleanup volunteer
0
 

Author Comment

by:SiWix
ID: 8056797
To EE-moderator.

Ryancys's comment was not acceptable. Please do not accept his comment as answer.
0
 
LVL 53

Expert Comment

by:Ryan Chong
ID: 8061528
Since SiWix got his solution in other way round, i suggest to PAQ this question with 0 pts.

regards
0
 

Accepted Solution

by:
SpideyMod earned 0 total points
ID: 8095655
PAQ'd and points refunded

SpideyMod
Community Support Moderator @Experts Exchange
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Suggested Courses

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question