mirror of
https://github.com/veracrypt/VeraCrypt
synced 2024-11-27 21:43:29 +01:00
Windows: disable dropdown split button in volume expander (#1389)
This commit is contained in:
parent
d4f2176e25
commit
321637e0e0
@ -702,7 +702,9 @@ void EnableDisableButtons (HWND hwndDlg)
|
|||||||
|
|
||||||
case TC_MLIST_ITEM_FREE:
|
case TC_MLIST_ITEM_FREE:
|
||||||
default:
|
default:
|
||||||
|
#if !defined(VCEXPANDER)
|
||||||
EnableSplitButton(hwndDlg, IDOK);
|
EnableSplitButton(hwndDlg, IDOK);
|
||||||
|
#endif
|
||||||
SetWindowTextW (hOKButton, GetString ("MOUNT_BUTTON"));
|
SetWindowTextW (hOKButton, GetString ("MOUNT_BUTTON"));
|
||||||
// Invalid the button IDOK so that it will be redrawn
|
// Invalid the button IDOK so that it will be redrawn
|
||||||
InvalidateRect (hOKButton, NULL, TRUE);
|
InvalidateRect (hOKButton, NULL, TRUE);
|
||||||
@ -8134,6 +8136,7 @@ BOOL CALLBACK MainDialogProc (HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lPa
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#if !defined(VCEXPANDER)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
LPNMHDR pnmh = (LPNMHDR)lParam;
|
LPNMHDR pnmh = (LPNMHDR)lParam;
|
||||||
@ -8146,6 +8149,7 @@ BOOL CALLBACK MainDialogProc (HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lPa
|
|||||||
DestroyMenu(hmenu);
|
DestroyMenu(hmenu);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
case WM_ERASEBKGND:
|
case WM_ERASEBKGND:
|
||||||
|
Loading…
Reference in New Issue
Block a user