Link to home
Start Free TrialLog in
Avatar of wjm9430
wjm9430

asked on

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
Avatar of wjm9430
wjm9430

ASKER

This problem is because of CListCtrl style or drawcell problem?
ASKER CERTIFIED SOLUTION
Avatar of AlexFM
AlexFM

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Zoppo
Could you paste the code of your WM_DRAWITEM message handler?
Avatar of wjm9430

ASKER

I get it.
Thanks a lot!