I'm using the LVM_GETCOUNTPERPAGE message to determine how many rows to add and fill the ListView, but it's returning a value that's too high every time. It's off by 3 rows and I can't figure out why. It's got LVS_REPORT and LVS_EX_GRIDLINES styles set. It almost seems like it's not accounting for the gridlines. Is that possible?
Code:int PageSize = SendMessage(hMemData,LVM_GETCOUNTPERPAGE,0,0); for (iRow = 0; iRow < PageSize; iRow++) {