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

Function tableViewNormalLVWndProc

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

Source from the content-addressed store, hash-verified

1915}
1916
1917func tableViewNormalLVWndProc(hwnd win.HWND, msg uint32, wp, lp uintptr) uintptr {
1918 tv := (*TableView)(unsafe.Pointer(windowFromHandle(win.GetParent(hwnd)).AsWindowBase()))
1919
1920 switch msg {
1921 case win.WM_LBUTTONDOWN, win.WM_RBUTTONDOWN:
1922 win.SetFocus(tv.hwndFrozenLV)
1923
1924 case win.WM_SETFOCUS:
1925 tv.invalidateBorderInParent()
1926 tv.maybePublishFocusChanged(hwnd, msg, wp)
1927
1928 case win.WM_KILLFOCUS:
1929 win.SendMessage(tv.hwndFrozenLV, msg, wp, lp)
1930 tv.WndProc(tv.hWnd, msg, wp, lp)
1931 tv.maybePublishFocusChanged(hwnd, msg, wp)
1932 }
1933
1934 result := tv.lvWndProc(tv.normalLVOrigWndProcPtr, hwnd, msg, wp, lp)
1935
1936 var off uint32 = win.WS_HSCROLL | win.WS_VSCROLL
1937 if tv.scrollbarOrientation&Horizontal != 0 {
1938 off &^= win.WS_HSCROLL
1939 }
1940 if tv.scrollbarOrientation&Vertical != 0 {
1941 off &^= win.WS_VSCROLL
1942 }
1943 if off != 0 {
1944 ensureWindowLongBits(hwnd, win.GWL_STYLE, off, false)
1945 }
1946
1947 return result
1948}
1949
1950func (tv *TableView) lvWndProc(origWndProcPtr uintptr, hwnd win.HWND, msg uint32, wp, lp uintptr) uintptr {
1951 var hwndOther win.HWND

Callers 2

tableViewFrozenLVWndProcFunction · 0.85
WndProcMethod · 0.85

Calls 9

windowFromHandleFunction · 0.85
ensureWindowLongBitsFunction · 0.85
lvWndProcMethod · 0.80
AsWindowBaseMethod · 0.65
SetFocusMethod · 0.65
SendMessageMethod · 0.65
WndProcMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…