Skip to content

Commit

Permalink
Hide checkmarks in process selection menu
Browse files Browse the repository at this point in the history
  • Loading branch information
learn-more committed Mar 19, 2021
1 parent 8dafba0 commit f9291f5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Process.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,13 @@ static HMENU CreateProcessMenu(UINT Height)
EnumWindows(enumProc2, NULL);

Menu = CreatePopupMenu();

// Do not reserve place for checkmarks
MENUINFO Info = { sizeof(Info), MIM_STYLE};
GetMenuInfo(Menu, &Info);
Info.dwStyle |= MNS_NOCHECK;
SetMenuInfo(Menu, &Info);

WCHAR buffer[MAX_PATH + 20];
UINT ItemHeight, Current = 0;
ItemHeight = GetSystemMetrics(SM_CYMENUSIZE);
Expand Down

0 comments on commit f9291f5

Please sign in to comment.