Pregunta

Necesito pasar un HWND a una DLL nativa que va a escribir video en bruto al marco.En WPF, esto funciona porque puede obtener una referencia de HWND de un control.¿Es esto posible en una aplicación de metro?

¿Fue útil?

Solución

It is not possible to get HWND for a control, because Metro doesn't have HWNDs.

If you can get the video stream, try using a video brush and setting the source. Otherwise, look into SharpDx library, which is a managed port of DirectX. I think you can draw 'stuff' to an element from it.

Hope this helps.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top