?
Solved

Resize CListCtrl while dialog resizing

Posted on 2003-03-18
4
Medium Priority
?
595 Views
Last Modified: 2013-11-20
I create a dialog based project. And I want to resize a CListCtrl while the dialog resizing. If the CListCtrl has LVS_OWNERDRAWFIXED style, the height of each CListCtrl row will become very big when dialog resize. But if it doesn't have LVS_OWNERDRAWFIXED style, resize will be properly. I want to know why this will happen? LVS_OWNERDRAWFIXED style will have this phenomenon or maybe my code has problem?

My project my need LVS_OWNERDRAWFIXED CListCtrl style, because I want to draw things in cells.

Thanks
0
Comment
Question by:wjm9430
[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
  • 2
4 Comments
 

Author Comment

by:wjm9430
ID: 8163826
This problem is because of CListCtrl style or drawcell problem?
0
 
LVL 48

Accepted Solution

by:
AlexFM earned 225 total points
ID: 8164426
The problem is possibly in WM_DRAWITEM message handler.
LVS_OWNERDRAWFIXED means that the list view control sends a WM_DRAWITEM message to paint each item; it does not send separate messages for each subitem.
0
 
LVL 31

Expert Comment

by:Zoppo
ID: 8164749
Could you paste the code of your WM_DRAWITEM message handler?
0
 

Author Comment

by:wjm9430
ID: 8172128
I get it.
Thanks a lot!
0

Featured Post

Will your db performance match your db growth?

In Percona’s white paper “Performance at Scale: Keeping Your Database on Its Toes,” we take a high-level approach to what you need to think about when planning for database scalability.

Question has a verified solution.

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

Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
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, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

777 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