Solved

Listview Columns - winapi

Posted on 2002-07-26
7
346 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
7 Comments
 
LVL 50

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
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

 
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 50

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

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

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

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

831 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