mirror of
https://github.com/stenzek/duckstation.git
synced 2026-02-04 05:04:33 +00:00
Updater: Close button should be disabled
This commit is contained in:
@@ -177,9 +177,9 @@ LRESULT CALLBACK Win32ProgressCallback::WndProc(HWND hwnd, UINT msg, WPARAM wpar
|
||||
{
|
||||
case WM_CREATE:
|
||||
{
|
||||
m_dpi = GetDpiForWindow(hwnd);
|
||||
|
||||
const CREATESTRUCT* cs = reinterpret_cast<CREATESTRUCT*>(lparam);
|
||||
m_dpi = GetDpiForWindow(hwnd);
|
||||
EnableMenuItem(GetSystemMenu(hwnd, FALSE), SC_CLOSE, MF_BYCOMMAND | MF_DISABLED | MF_GRAYED);
|
||||
|
||||
LOGFONT lf = {};
|
||||
SystemParametersInfoForDpi(SPI_GETICONTITLELOGFONT, sizeof(lf), &lf, 0, m_dpi);
|
||||
|
||||
Reference in New Issue
Block a user