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

Method maybePublishFocusChanged

tableview.go:1887–1894  ·  view source on GitHub ↗
(hwnd win.HWND, msg uint32, wp uintptr)

Source from the content-addressed store, hash-verified

1885}
1886
1887func (tv *TableView) maybePublishFocusChanged(hwnd win.HWND, msg uint32, wp uintptr) {
1888 focused := msg == win.WM_SETFOCUS
1889
1890 if focused != tv.focused && wp != uintptr(tv.hwndFrozenLV) && wp != uintptr(tv.hwndNormalLV) {
1891 tv.focused = focused
1892 tv.focusedChangedPublisher.Publish()
1893 }
1894}
1895
1896func tableViewFrozenLVWndProc(hwnd win.HWND, msg uint32, wp, lp uintptr) uintptr {
1897 tv := (*TableView)(unsafe.Pointer(windowFromHandle(win.GetParent(hwnd)).AsWindowBase()))

Callers 2

tableViewFrozenLVWndProcFunction · 0.80
tableViewNormalLVWndProcFunction · 0.80

Calls 1

PublishMethod · 0.45

Tested by

no test coverage detected