/[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 60 by twoaday, Wed Nov 2 14:35:48 2005 UTC revision 77 by twoaday, Mon Nov 14 15:01:01 2005 UTC
# Line 23  Line 23 
23  #endif  #endif
24    
25  #include <stdio.h>  #include <stdio.h>
 #include <stdio.h>  
26  #include <windows.h>  #include <windows.h>
27  #include <commctrl.h>  #include <commctrl.h>
28    
# Line 314  listview_select_all (listview_ctrl_t ctx Line 313  listview_select_all (listview_ctrl_t ctx
313    
314    
315  void  void
316    listview_deselect_all (listview_ctrl_t ctx)
317    {
318        ListView_SetItemState (ctx->ctrl, -1, ~LVNI_SELECTED, LVNI_SELECTED);
319    }
320    
321    
322    void
323  listview_select_one (listview_ctrl_t ctx, int pos)  listview_select_one (listview_ctrl_t ctx, int pos)
324  {  {
325      ListView_SetItemState (ctx->ctrl, pos, LVIS_SELECTED|LVIS_FOCUSED, LVIS_FOCUSED|LVIS_SELECTED);      ListView_SetItemState (ctx->ctrl, pos, LVIS_SELECTED|LVIS_FOCUSED, LVIS_FOCUSED|LVIS_SELECTED);

Legend:
Removed from v.60  
changed lines
  Added in v.77

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26