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 |
|
|
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); |