MCPcopy Create free account
hub / github.com/TranslucentTB/TranslucentTB / GetNextClickableId

Method GetNextClickableId

TranslucentTB/tray/basecontextmenu.cpp:11–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9#include "../ProgramLog/error/win32.hpp"
10
11UINT BaseContextMenu::GetNextClickableId() noexcept
12{
13 // skip over 0 because TrackPopupMenu returning 0 means the menu was dismissed
14 // or an error occured. We don't want to trigger an entry when the menu is dismissed,
15 // and we can't distinguish menu dismisses from proper clicks.
16 if (m_ContextMenuClickableId == 0)
17 {
18 m_ContextMenuClickableId = 1;
19 }
20
21 return m_ContextMenuClickableId++;
22}
23
24wil::unique_hmenu BaseContextMenu::BuildContextMenuInner(const wfc::IVector<wuxc::MenuFlyoutItemBase> &items)
25{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected