aboutsummaryrefslogtreecommitdiff
path: root/c/datalistview.c
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2022-04-25 14:10:02 +0200
committerJohn Ankarström <john@ankarstrom.se>2022-04-25 14:10:02 +0200
commitc884c09ac88c0d22a21f839593d77c7173c41b60 (patch)
tree5aa03981fcc2196443993d691f792c14d0435872 /c/datalistview.c
parent45133f2f99dc2e6f0e786909a68f1cfd93b7f01d (diff)
downloadEpisodeBrowser-c884c09ac88c0d22a21f839593d77c7173c41b60.tar.gz
Flip title and rating columns.
Diffstat (limited to 'c/datalistview.c')
-rw-r--r--c/datalistview.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/c/datalistview.c b/c/datalistview.c
index e9ad2ac..5335b27 100644
--- a/c/datalistview.c
+++ b/c/datalistview.c
@@ -16,16 +16,16 @@ DlvCreate()
HDlv = LvCreate((HMENU)IDC_DATALISTVIEW, LVS_NOCOLUMNHEADER);
lvc.mask = LVCF_WIDTH|LVCF_TEXT|LVCF_SUBITEM;
- lvc.iSubItem = 0;
+ lvc.iSubItem = DLVSIKEY;
lvc.pszText = TEXT("Key");
lvc.cx = Dpi(42);
- ListView_InsertColumn(HDlv, 0, &lvc);
+ ListView_InsertColumn(HDlv, DLVSIKEY, &lvc);
- lvc.iSubItem = 1;
+ lvc.iSubItem = DLVSIVALUE;
lvc.pszText = TEXT("Value");
lvc.cx = 500;
- ListView_InsertColumn(HDlv, 1, &lvc);
+ ListView_InsertColumn(HDlv, DLVSIVALUE, &lvc);
return HDlv;
}