add listview explorer style

This commit is contained in:
freedom7341
2023-10-11 12:23:24 -06:00
parent 36a6d1a888
commit efb000f4ec
2 changed files with 5 additions and 0 deletions

View File

@@ -16,6 +16,7 @@
#include <Windows.h>
#include <CommCtrl.h>
#include <strsafe.h>
#include <uxtheme.h>
/* Variables */
WNDCLASSEX wcGrp;
@@ -164,6 +165,9 @@ HWND CreateGroup(_In_ PGROUP pg)
rcGroupWindow.right - rcGroupWindow.left,
rcGroupWindow.bottom - rcGroupWindow.top, SWP_NOZORDER);
// add the explorer style because it looks good
SetWindowTheme(hWndListView, TEXT("Explorer"), NULL);
// create a ListView name column
lvc.mask = LVCF_FMT | LVCF_WIDTH;
lvc.fmt = LVCFMT_LEFT;

View File

@@ -12,6 +12,7 @@
#pragma comment(lib, "Pathcch.lib")
#pragma comment(lib, "Shlwapi.lib")
#pragma comment(lib, "Secur32.lib")
#pragma comment(lib, "UxTheme.lib")
#pragma comment(lib, "Version.lib")
/* Includes */