[EXPLORER]
[reactos.git] / reactos / base / shell / explorer / shell / pane.cpp
index 5320b3d..1e69b60 100644 (file)
@@ -13,7 +13,7 @@
  *
  * You should have received a copy of the GNU Lesser General Public
  * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
 
@@ -144,7 +144,7 @@ bool Pane::create_header(HWND hparent, int id)
                hdi.pszText = (TCHAR*)g_pos_names[idx];
                hdi.fmt = HDF_STRING | g_pos_align[idx];
                hdi.cxy = _widths[idx];
-               (void)Header_InsertItem(hwnd, idx, &hdi);
+               Header_InsertItem(hwnd, idx, &hdi);
        }
 
        _hwndHeader = hwnd;
@@ -702,20 +702,20 @@ void Pane::set_header()
        item.mask = HDI_WIDTH;
        item.cxy = 0;
 
-       for(; x+_widths[i]<scroll_pos && i<COLUMNS; i++) {
+       for(; i<COLUMNS && x+_widths[i]<scroll_pos; i++) {
                x += _widths[i];
-               (void)Header_SetItem(_hwndHeader, i, &item);
+               Header_SetItem(_hwndHeader, i, &item);
        }
 
        if (i < COLUMNS) {
                x += _widths[i];
                item.cxy = x - scroll_pos;
-               (void)Header_SetItem(_hwndHeader, i++, &item);
+               Header_SetItem(_hwndHeader, i++, &item);
 
                for(; i<COLUMNS; i++) {
                        item.cxy = _widths[i];
                        x += _widths[i];
-                       (void)Header_SetItem(_hwndHeader, i, &item);
+                       Header_SetItem(_hwndHeader, i, &item);
                }
        }
 }
@@ -779,7 +779,7 @@ void Pane::calc_single_width(int col)
                x += _widths[col];
        }
 
-       (void)ListBox_SetHorizontalExtent(_hwnd, x);
+       ListBox_SetHorizontalExtent(_hwnd, x);
 }
 
 
@@ -796,7 +796,7 @@ int Pane::Notify(int id, NMHDR* pnmh)
                        ClientRect clnt(_hwnd);
 
                         // move immediate to simulate HDS_FULLDRAG (for now [04/2000] not realy needed with WINELIB)
-                       (void)Header_SetItem(_hwndHeader, idx, phdn->pitem);
+                       Header_SetItem(_hwndHeader, idx, phdn->pitem);
 
                        _widths[idx] += dx;
 
@@ -845,7 +845,7 @@ int Pane::Notify(int id, NMHDR* pnmh)
                        item.mask = HDI_WIDTH;
                        item.cxy = _widths[phdn->iItem];
 
-                       (void)Header_SetItem(_hwndHeader, phdn->iItem, &item);
+                       Header_SetItem(_hwndHeader, phdn->iItem, &item);
                        InvalidateRect(_hwnd, 0, TRUE);
                        break;}