(window Window)
| 22 | } |
| 23 | |
| 24 | func 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 | |
| 39 | func NewMenu() (*Menu, error) { |
| 40 | hMenu := win.CreatePopupMenu() |
no test coverage detected
searching dependent graphs…