Skip to content

Commit 4f46e2f

Browse files
committed
TableView: adjust formatting (NFC)
1 parent 5746da4 commit 4f46e2f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Sources/SwiftWin32/Views and Controls/Table Views/TableView.swift

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,14 @@ private let SwiftTableViewProxyWindowProc: WNDPROC = { (hWnd, uMsg, wParam, lPar
3131
let rctRect: RECT = lpDrawItem.pointee.rcItem
3232
_ = SetWindowPos(view.hWnd, nil, rctRect.left, rctRect.top, 0, 0,
3333
UINT(SWP_NOSIZE))
34-
// Setting isHidden is necessary for TableCells generated after initial call to Window.makeKeyAndVisible()
34+
35+
// Setting `isHidden` is necessary for TableCells generated after
36+
// initial call to `Window.makeKeyAndVisible()`
3537
let hWndParent = GetParent(view.hWnd)
3638
if IsWindowVisible(hWndParent) && !IsWindowVisible(view.hWnd) {
37-
view.isHidden = false
39+
view.isHidden = false
3840
}
41+
3942
return DefWindowProcW(view.hWnd, UINT(WM_PAINT), 0, 0)
4043
}
4144

0 commit comments

Comments
 (0)