From 7aef36936d9e99d8f6114b41290ffe6a9e817581 Mon Sep 17 00:00:00 2001 From: GRZ4NA Date: Thu, 13 May 2021 18:46:14 +0200 Subject: [PATCH] tries :( --- Easy Audio Player.vcxproj | 1 + main.cpp | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/Easy Audio Player.vcxproj b/Easy Audio Player.vcxproj index 4fd1959..9fb3012 100644 --- a/Easy Audio Player.vcxproj +++ b/Easy Audio Player.vcxproj @@ -120,6 +120,7 @@ Windows true + uxtheme.lib;%(AdditionalDependencies) diff --git a/main.cpp b/main.cpp index f30672a..ef33cc0 100644 --- a/main.cpp +++ b/main.cpp @@ -1,6 +1,7 @@ //INCLUDES #include "EzWinAPIBuilders.h" #include +//#include //GLOBAL VARS MSG msg; @@ -28,6 +29,12 @@ int WINAPI WinMain(HINSTANCE currentInst, HINSTANCE previousInst, LPSTR lpCmdLin HWND mainWindow = EzCreateWindow(windowClass,currentInst,L"Easy Audio Player", WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU | WS_MINIMIZEBOX, 400, 600, NULL); ShowWindow(mainWindow, nCmdShow); UpdateWindow(mainWindow); + /*SetWindowTheme(mainWindow, L" ", NULL);*/ + /*NONCLIENTMETRICS ncm; + ncm.cbSize = sizeof(NONCLIENTMETRICS); + SystemParametersInfo(SPI_GETNONCLIENTMETRICS, sizeof(NONCLIENTMETRICS), &ncm, 0); + HFONT systemFont = CreateFontIndirect(&ncm.lfMessageFont); + SendMessage(mainWindow, WM_SETFONT, (WPARAM)systemFont, MAKELPARAM(TRUE, 0));*/ while (GetMessage(&msg, NULL, 0, 0)) { TranslateMessage(&msg);