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

x
?
Solved

ListBox messages

Posted on 1997-08-08
3
Medium Priority
?
414 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 160 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
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.
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…

618 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