aboutsummaryrefslogtreecommitdiff
path: root/c/datalistview.c
diff options
context:
space:
mode:
Diffstat (limited to 'c/datalistview.c')
-rw-r--r--c/datalistview.c20
1 files changed, 19 insertions, 1 deletions
diff --git a/c/datalistview.c b/c/datalistview.c
index 43cfeb6..873befc 100644
--- a/c/datalistview.c
+++ b/c/datalistview.c
@@ -6,10 +6,28 @@
HWND gDlv_hWnd;
-void
+HWND
DlvCreate(HWND hWnd)
{
+ HWND hListView;
+ LVCOLUMN lvc;
+
gDlv_hWnd = hWnd;
+ hListView = LvCreate(hWnd, (HMENU)IDC_DATALISTVIEW);
+
+ lvc.mask = LVCF_WIDTH|LVCF_TEXT|LVCF_SUBITEM;
+
+ lvc.iSubItem = 0;
+ lvc.pszText = TEXT("Key");
+ lvc.cx = 42;
+ ListView_InsertColumn(hListView, 0, &lvc);
+
+ lvc.iSubItem = 1;
+ lvc.pszText = TEXT("Value");
+ lvc.cx = 500;
+ ListView_InsertColumn(hListView, 1, &lvc);
+
+ return hListView;
}
/* Show episode data. */