From c884c09ac88c0d22a21f839593d77c7173c41b60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Mon, 25 Apr 2022 14:10:02 +0200 Subject: Flip title and rating columns. --- c/datalistview.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'c/datalistview.c') 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; } -- cgit v1.2.3