Open
Description
Hi!
I'm following the tutorial
Host a standard WinRT XAML control in a C++ desktop (Win32) app
and was wondering what is the purpose of this line in the code sample:
case WM_CREATE:
_childhWnd = CreateWindowEx(0, L"ChildWClass", NULL, WS_CHILD | WS_BORDER, 0, 0, 0, 0, hWnd, NULL, _hInstance, NULL);
_childhWnd does not get created and GetLastError() returns 1407 = Cannot find window class.
Is this WM_CREATE handler relevant in any way to the XAML island hosting demo?
Thank you
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.
- ID: 896fef0f-20c1-4191-4f05-b330bc02e820
- Version Independent ID: c58a8006-f1f3-4345-d5fb-205b4c782320
- Content: Host a standard WinRT XAML control in a C++ desktop (Win32) app using XAML Islands - Windows apps
- Content Source: hub/apps/desktop/modernize/host-standard-control-with-xaml-islands-cpp.md
- Product: reunion
- Technology: apps
- GitHub Login: @Karl-Bridge-Microsoft
- Microsoft Alias: kbridge