Skip to content

Host a standard WinRT XAML control in a C++ desktop (Win32) app - Question #4135

Open
@petr-larin

Description

@petr-larin

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.
XAMLinWin32

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.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions