Resize CListCtrl while dialog resizing

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
wjm9430Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

wjm9430Author Commented:
This problem is because of CListCtrl style or drawcell problem?
0
AlexFMCommented:
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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
ZoppoCommented:
Could you paste the code of your WM_DRAWITEM message handler?
0
wjm9430Author Commented:
I get it.
Thanks a lot!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
System Programming

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.