add listview explorer style
This commit is contained in:
@@ -16,6 +16,7 @@
|
|||||||
#include <Windows.h>
|
#include <Windows.h>
|
||||||
#include <CommCtrl.h>
|
#include <CommCtrl.h>
|
||||||
#include <strsafe.h>
|
#include <strsafe.h>
|
||||||
|
#include <uxtheme.h>
|
||||||
|
|
||||||
/* Variables */
|
/* Variables */
|
||||||
WNDCLASSEX wcGrp;
|
WNDCLASSEX wcGrp;
|
||||||
@@ -164,6 +165,9 @@ HWND CreateGroup(_In_ PGROUP pg)
|
|||||||
rcGroupWindow.right - rcGroupWindow.left,
|
rcGroupWindow.right - rcGroupWindow.left,
|
||||||
rcGroupWindow.bottom - rcGroupWindow.top, SWP_NOZORDER);
|
rcGroupWindow.bottom - rcGroupWindow.top, SWP_NOZORDER);
|
||||||
|
|
||||||
|
// add the explorer style because it looks good
|
||||||
|
SetWindowTheme(hWndListView, TEXT("Explorer"), NULL);
|
||||||
|
|
||||||
// create a ListView name column
|
// create a ListView name column
|
||||||
lvc.mask = LVCF_FMT | LVCF_WIDTH;
|
lvc.mask = LVCF_FMT | LVCF_WIDTH;
|
||||||
lvc.fmt = LVCFMT_LEFT;
|
lvc.fmt = LVCFMT_LEFT;
|
||||||
|
|||||||
@@ -12,6 +12,7 @@
|
|||||||
#pragma comment(lib, "Pathcch.lib")
|
#pragma comment(lib, "Pathcch.lib")
|
||||||
#pragma comment(lib, "Shlwapi.lib")
|
#pragma comment(lib, "Shlwapi.lib")
|
||||||
#pragma comment(lib, "Secur32.lib")
|
#pragma comment(lib, "Secur32.lib")
|
||||||
|
#pragma comment(lib, "UxTheme.lib")
|
||||||
#pragma comment(lib, "Version.lib")
|
#pragma comment(lib, "Version.lib")
|
||||||
|
|
||||||
/* Includes */
|
/* Includes */
|
||||||
|
|||||||
Reference in New Issue
Block a user