MCPcopy Create free account
hub / github.com/BeneficialCode/WinArk / UpdateMenu

Method UpdateMenu

WinArk/OwnerDrawnMenu.cpp:24–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22}
23
24void COwnerDrawnMenuBase::UpdateMenu(CMenuHandle menu, bool subMenus) {
25 MENUINFO mi = { sizeof(mi) };
26 mi.fMask = MIM_BACKGROUND | (subMenus ? MIM_APPLYTOSUBMENUS : 0);
27 CBrush brush;
28 brush.CreateSolidBrush(m_BackColor);
29 mi.hbrBack = brush.Detach();
30 ATLVERIFY(menu.SetMenuInfo(&mi));
31}
32
33void COwnerDrawnMenuBase::AddCommand(UINT id, HICON hIcon) {
34 ItemData data;

Callers

nothing calls this directly

Calls 1

DetachMethod · 0.45

Tested by

no test coverage detected