Solved

ListBox messages

Posted on 1997-08-08
3
408 Views
Last Modified: 2013-11-19
I have created a class (CReportCtrl) derived from
CWnd that contains a CHeaderCtrl and a CListBox.
The CListBox is ownerdrawn and I can catch WM_MEASUREITEM
and WM_DRAWITEM in CReportCtrl. But I can't catch some
messages like WM_HSCROLL from the CListBox.
How can I catch this message ?

I would also want to catch NM_RETURN or something so
a doubleclick is performed when the user selects an
item and then press return.
How ?
0
Comment
Question by:d94stein
[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
3 Comments
 
LVL 3

Expert Comment

by:jaba
ID: 1303386
Why you using ListBox and headerCtrl ? Why not CListView in Report form ?

0
 
LVL 3

Accepted Solution

by:
byang earned 80 total points
ID: 1303387
Check the properties of the listbox and header ctrl in resource editor, they should have "notify parent" checked.
0
 

Author Comment

by:d94stein
ID: 1303388
The reason I didn't use CListView is that I couldn't
find a to change the font. When I tried the text was
clipped becauase the height of the items remained the
same. So I decided to make a better control of my own.
But if someone has a sollusion for changing font in
the CListView please send it to me at d94stein@isy.liu.se

0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…

696 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