mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 05:35:40 +00:00
[SHELL32] Fix a bug that caused Auto Arrange to always be highlighted in the file explorer
This occurred in the file explorer because the menu isn't destroyed and recreated each time, so the menu item, once checked, will stay checked forever. We must call CheckMenuItem with MF_UNCHECKED to clear the check when necessary
This commit is contained in:
parent
c82ba3485e
commit
8c4bd09518
1 changed files with 2 additions and 0 deletions
|
@ -1324,6 +1324,8 @@ HRESULT CDefView::FillArrangeAsMenu(HMENU hmenuArrange)
|
|||
|
||||
if (GetAutoArrange() == S_OK)
|
||||
CheckMenuItem(hmenuArrange, FCIDM_SHVIEW_AUTOARRANGE, MF_CHECKED);
|
||||
else
|
||||
CheckMenuItem(hmenuArrange, FCIDM_SHVIEW_AUTOARRANGE, MF_UNCHECKED);
|
||||
|
||||
if (_GetSnapToGrid() == S_OK)
|
||||
CheckMenuItem(hmenuArrange, FCIDM_SHVIEW_ALIGNTOGRID, MF_CHECKED);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue