/[winpt]/trunk/Src/wptListView.cpp
ViewVC logotype

Diff of /trunk/Src/wptListView.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 128 by twoaday, Mon Dec 12 11:19:56 2005 UTC revision 129 by twoaday, Fri Dec 30 13:56:10 2005 UTC
# Line 18  Line 18 
18   * along with WinPT; if not, write to the Free Software Foundation,   * along with WinPT; if not, write to the Free Software Foundation,
19   * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA   * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20   */   */
21    
22  #ifdef HAVE_CONFIG_H  #ifdef HAVE_CONFIG_H
23  #include <config.h>  #include <config.h>
24  #endif  #endif
# Line 181  listview_count_items( listview_ctrl_t ct Line 182  listview_count_items( listview_ctrl_t ct
182    
183    
184  int  int
185    listview_del_column (listview_ctrl_t ctx, int pos)
186    {
187        ctx->cols--;
188        return ListView_DeleteColumn (ctx->ctrl, pos)? 0 : 1;
189    }
190    
191    
192    int
193  listview_del_item( listview_ctrl_t ctx, int pos )  listview_del_item( listview_ctrl_t ctx, int pos )
194  {  {
195      int rc = 0;      int rc = 0;
# Line 351  listview_find (listview_ctrl_t ctx, cons Line 360  listview_find (listview_ctrl_t ctx, cons
360      return pos;      return pos;
361  }  }
362    
363    
364    void
365    listview_setview (listview_ctrl_t ctx, DWORD view)
366    {
367        DWORD style = GetWindowLong (ctx->ctrl, GWL_STYLE);
368        if ((style & LVS_TYPEMASK) != view)
369            SetWindowLong (ctx->ctrl, GWL_STYLE, (style & ~LVS_TYPEMASK) | view);
370    }

Legend:
Removed from v.128  
changed lines
  Added in v.129

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26