add listview explorer style
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user