MCPcopy
hub / github.com/lxn/walk / newMenuBar

Function newMenuBar

menu.go:24–37  ·  view source on GitHub ↗
(window Window)

Source from the content-addressed store, hash-verified

22}
23
24func newMenuBar(window Window) (*Menu, error) {
25 hMenu := win.CreateMenu()
26 if hMenu == 0 {
27 return nil, lastError("CreateMenu")
28 }
29
30 m := &Menu{
31 hMenu: hMenu,
32 window: window,
33 }
34 m.actions = newActionList(m)
35
36 return m, nil
37}
38
39func NewMenu() (*Menu, error) {
40 hMenu := win.CreatePopupMenu()

Callers 1

NewMainWindowWithCfgFunction · 0.85

Calls 2

lastErrorFunction · 0.85
newActionListFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…