This is a basic standard Windows application and with a single main window created with
hWnd = CreateWindow(
szWindowClass,
szTitle,
WS_OVERLAPPEDWINDOW,
CW_USEDEFAULT,
0,
1000 + (GetSystemMetrics(SM_CXFRAME) * 2), // Initial window width
1000 + (GetSystemMetrics(SM_CYFRAME) * 2) +
GetSystemMetrics(SM_CYCAPTION) + GetSystemMetrics(SM_CYMENU), // Initial height
NULL,
NULL,
hInstance,
NULL);
The destruction of SFML RenderWindow is called before calling DestroyWindow(hWnd); for the main (and single) hWnd for which RenderWindow was created.