Skip to content

Commit 77fd28a

Browse files
committed
Updates
1 parent b3c0e96 commit 77fd28a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Samples/WinMLSamplesGallery/WinMLSamplesGalleryNative/Win32Application.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,11 +109,12 @@ LRESULT CALLBACK Win32Application::WindowProc(HWND hWnd, UINT message, WPARAM wP
109109

110110
switch (message)
111111
{
112-
case WM_CREATE:
112+
case WM_NCCREATE:
113113
{
114114
// Save the D3D12Quad* passed in to CreateWindow.
115115
LPCREATESTRUCT pCreateStruct = reinterpret_cast<LPCREATESTRUCT>(lParam);
116116
SetWindowLongPtr(hWnd, GWLP_USERDATA, reinterpret_cast<LONG_PTR>(pCreateStruct->lpCreateParams));
117+
return DefWindowProc(hWnd, message, wParam, lParam);
117118
}
118119
return 0;
119120

0 commit comments

Comments
 (0)