Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

TListview Column Resize event

Posted on 1997-04-10
1
Medium Priority
?
278 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 100 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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
C++ Properties One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (http://www.experts-exchange.com/Programming/Languages/CPP/A_3912-Object-Properties-in-C.ht…
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 additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

604 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