]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/msw/listctrl.h
use HasFlag() and InXXX() instead of explicit flag testing (patch 899507)
[wxWidgets.git] / include / wx / msw / listctrl.h
index 2882228178ba8e49db8ffd1d74c3ca45cef1e4e7..35dcf0bec4adf1e31f7d9f13a724d8ce458dd1f6 100644 (file)
@@ -238,8 +238,11 @@ public:
     void SetImageList(wxImageList *imageList, int which) ;
     void AssignImageList(wxImageList *imageList, int which) ;
 
-    // returns true if it is a virtual list control
-    bool IsVirtual() const { return (GetWindowStyle() & wxLC_VIRTUAL) != 0; }
+    // are we in report mode?
+    bool InReportView() const { return HasFlag(wxLC_REPORT); }
+
+    // are we in virtual report mode?
+    bool IsVirtual() const { return HasFlag(wxLC_VIRTUAL); }
 
     // refresh items selectively (only useful for virtual list controls)
     void RefreshItem(long item);