MCPcopy Create free account
hub / github.com/lxn/walk / updateItemsWithImageForWindow

Method updateItemsWithImageForWindow

menu.go:84–100  ·  view source on GitHub ↗
(window Window)

Source from the content-addressed store, hash-verified

82}
83
84func (m *Menu) updateItemsWithImageForWindow(window Window) {
85 if m.window == nil {
86 m.window = window
87 defer func() {
88 m.window = nil
89 }()
90 }
91
92 for _, action := range m.actions.actions {
93 if action.image != nil {
94 m.onActionChanged(action)
95 }
96 if action.menu != nil {
97 action.menu.updateItemsWithImageForWindow(window)
98 }
99 }
100}
101
102func (m *Menu) initMenuItemInfoFromAction(mii *win.MENUITEMINFO, action *Action) {
103 mii.CbSize = uint32(unsafe.Sizeof(*mii))

Callers 3

WndProcMethod · 0.80
WndProcMethod · 0.80
WndProcMethod · 0.80

Calls 1

onActionChangedMethod · 0.95

Tested by

no test coverage detected