On February 11, 2004 02:07 pm, Aric Stewart wrote:
- if (bResult && lvItem.stateMask & LVIS_SELECTED &&
lvItem.state&LVIS_SELECTED && ((infoPtr->nSelectionMark
== -1) || (lvItem.iItem <= infoPtr->nSelectionMark)))
That's some funky indentation here :)
- {
infoPtr->nSelectionMark = -1;
int i = 0;
for (i = 0; i < infoPtr->nItemCount; i++)
{
if (infoPtr->uCallbackMask & LVIS_SELECTED)
{
if (LISTVIEW_GetItemState(infoPtr, i, LVIS_SELECTED))
^^^^^^^
here as well, any particular reason?