aboutsummaryrefslogtreecommitdiff
path: root/c/datalistview.c
diff options
context:
space:
mode:
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;
}