| 9 | #include "../ProgramLog/error/win32.hpp" |
| 10 | |
| 11 | UINT 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 | |
| 24 | wil::unique_hmenu BaseContextMenu::BuildContextMenuInner(const wfc::IVector<wuxc::MenuFlyoutItemBase> &items) |
| 25 | { |
nothing calls this directly
no outgoing calls
no test coverage detected