Solved

TListview Column Resize event

Posted on 1997-04-10
1
272 Views
Last Modified: 2008-03-17
How do I capture the column resizing for a TListWindow (or ListView control under Windows?)  
0
Comment
Question by:rlayton
[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
1 Comment
 
LVL 3

Accepted Solution

by:
gaohong earned 50 total points
ID: 1162667
Hell, Microsoft!  You guys try to get Column Resize message, however, there is
no such thing. But there is something worth trying.

Here is my agorithm to capture the column resizing:

remember the initial column width, IniColumnWidth;

add WM_LBUTTONUP, in LButtonUp handler, get current column width
compare with initial column width, if not same, then resized, do what you want,
after that, call default handler for LButtonup.

Hope this solves your problem
good luck

gaohong (gary) Xie

0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
Many modern programming languages support the concept of a property -- a class member that combines characteristics of both a data member and a method.  These are sometimes called "smart fields" because you can add logic that is applied automaticall…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

749 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