aboutsummaryrefslogtreecommitdiff
path: root/c/datalistview.c
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2022-02-15 16:56:31 +0100
committerJohn Ankarström <john@ankarstrom.se>2022-02-15 16:56:31 +0100
commitc605ea0545ac22dc328c83d78011e3d18346eb63 (patch)
treeb809214638566a8dc0621095c4be3fd721577b0c /c/datalistview.c
parent2e5ea298da89df79fc057ad46253e5a9d860e7e3 (diff)
downloadEpisodeBrowser-c605ea0545ac22dc328c83d78011e3d18346eb63.tar.gz
Show data list view.
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. */