How can I set the row height of a custom drawn list view? Or does it require an owner drawn list view?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It depends on the mode you are using it in.
In some modes, you can use theInLVM_SETITEMHEIGHTmessage.otherssome modes, the item height is dictated by the height of an associated ImageList, if any, followed by the height of the assigned Font.Update: turns out that
LVM_SETITEMHEIGHTis part of the MiniGUI library, not part of the Win32 API. In that case, you would have to use theLVS_OWNERDRAWFIXEDwindow style and then subclass the ListView to handle theWM_MEASUREITEMmessage.