Can anyone assist?

I'm trying to read the contents of a file opened with GetOpenFileNameA(&ofn) into an editable text-box part of a Window created with WinApi.

I'm using the SetWindowTextA function to output the contents of the file...

I'm not sure how I should read the contents of lpszFile from the OPENFILENAMEA struct into the second parameter of SetWindowTextA.

Can anyone suggest how to do this so it shows up in the following window type?

Code:
CreateWindow(L"Button", L"Open File", WS_VISIBLE | WS_CHILD, 10, 10, 150, 36, hWnd, (HMENU)OPEN_FILE, NULL, NULL);

HANDLE hEdit = CreateWindow(L"Edit", L"", WS_VISIBLE | WS_CHILD | WS_BORDER | ES_AUTOVSCROLL | ES_MULTILINE, 10, 50, 400, 300, hWnd, NULL, NULL, NULL);