Ok, more issues today...
1. Is there an easy way to determine the max number of items a ListView can hold without auto-creating a vertical scrollbar and/or disable said scrollbar? If I get into resizing the control on window resize, I want to be able to determine the number of items to set for the ListView to be filled on screen without any scrolling going on in the box. Naturally, the only message I can find that's close is LVM_APPROXIMATEVIEWRECT and it does the exact opposite of what I need. I need to calculate how many items can be held based on with/height, not with/height needed to hold X number of items. I'm working on my own function to do it based off the rect of the ListView and first item in it.
Actually, found part of what I needed to know for disabling the scrollbar.
There's a workaround in that knowledge base article but it doesn't tell you the exact messages/notifications to call the function from. :(Quote:
Originally Posted by MSDN
2. Which notification/message do you use to catch mouse wheel up/down scrolling?