]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/listctrl.cpp
don't call OnCloseDocument() from OnNewDocument(), this plainly doesn't make sense...
[wxWidgets.git] / src / msw / listctrl.cpp
index d8a318429447559f4bdf7911c9169390960855dc..ff4b32b8024ae4e0e322884554a60d8834afb9e8 100644 (file)
@@ -2706,7 +2706,7 @@ static void HandleItemPaint(LPNMLVCUSTOMDRAW pLVCD, HFONT hfont)
 
     // same thing for CDIS_FOCUS (except simpler as there is only one of them)
     if ( ::GetFocus() == hwndList &&
-            ListView_GetNextItem(hwndList, (WPARAM)-1, LVNI_FOCUSED) == item )
+            ListView_GetNextItem(hwndList, -1, LVNI_FOCUSED) == item )
     {
         nmcd.uItemState |= CDIS_FOCUS;
     }