SetParent function user32
Changes the parent window of the specified child window.
To learn more, see learn.microsoft.com/windows/win32/api/winuser/nf-winuser-setparent.
Implementation
Win32Result<HWND> SetParent(HWND hWndChild, HWND? hWndNewParent) {
resolveGetLastError();
final result_ = _SetParent(hWndChild, hWndNewParent ?? nullptr);
return .new(value: .new(result_), error: GetLastError());
}