Solved

Capturing TListWindow Column Resize

Posted on 1997-04-15
2
215 Views
Last Modified: 2012-06-27
I'm with the other guys here, and am willing to add my share of points to the pot for the answer to this question!  I'll donate all 181 points to anyone who can figure out how to capture the column resize event in a TListWindow (or ListView control under MS)!
0
Comment
Question by:ocurance
2 Comments
 

Author Comment

by:ocurance
ID: 1162738
Adjusted points to 196.5
0
 
LVL 3

Accepted Solution

by:
gaohong earned 190 total points
ID: 1162739
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
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.

758 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now