Destroy the header font

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@7220 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
anders_k 2020-08-16 16:19:46 +00:00
parent 75a41ba8d7
commit 0f2f08439d
3 changed files with 12 additions and 3 deletions

View file

@ -380,12 +380,12 @@ struct ScopedThreadDpiAwarenessContext { // Note: Assumes InitializeDpiApi() has
int m_AC; // Canonical "active" DPI_AWARENESS_CONTEXT
};
int ShowWndSpy(HWND hOwner)
INT_PTR ShowWndSpy(HWND hOwner)
{
InitializeDpiApi();
ScopedThreadDpiAwarenessContext::List aclist;
ScopedThreadDpiAwarenessContext stdac(aclist << DPI::ac_pm2 << DPI::ac_system);
DIALOGDATA dd;
dd.DialogAwarenessContext = stdac.GetCanonicalActiveAwarenessContext();
return DialogBoxParam(GetModuleHandle(NULL), MAKEINTRESOURCE(DLG_WNDSPY), hOwner, SpyDlgProc, (LPARAM) &dd);
return DialogBoxParam(HINST_APPLICATION, MAKEINTRESOURCE(DLG_WNDSPY), hOwner, SpyDlgProc, (LPARAM) &dd);
}