Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > Avalon

Vista - Control.Handle - How do I get a handle to a control with WinFX

 
 
Old 05-11-2006   #1 (permalink)
iNSaNey


 
 

Control.Handle - How do I get a handle to a control with WinFX

I've been playing with WinFX and maybe I'm missing something here but I
don't see a "Control.Handle" type function anywhere.

Is there some way to do this under WinFX. I want to use DirectShow with
a WinFX Panel.

Maybe I'm going about this the wrong way. I am totally new to this (1 -
2 hour looking over it so far)

Any help or guidance would be great

Shane


My System SpecsSystem Spec
Old 05-13-2006   #2 (permalink)
Martin Lafferty


 
 

Re: Control.Handle - How do I get a handle to a control with WinFX

iNSaNey wrote:

> I've been playing with WinFX and maybe I'm missing something here but
> I don't see a "Control.Handle" type function anywhere.
>
> Is there some way to do this under WinFX. I want to use DirectShow
> with a WinFX Panel.
>
> Maybe I'm going about this the wrong way. I am totally new to this (1
> - 2 hour looking over it so far)
>
> Any help or guidance would be great
>
> Shane



WPF Controls do not have Handles. They are entirely implemented by the
API - they are not wrappers for traditional windows controls.

There is an interop api (ElementHost) for hosting Win32 controls in a
WPF application (see Migration and Interoperability in the SDK docs) or
maybe you could use the WinFx multimedia API instead of DirectShow (see
Graphics And Multimedia / Audio and Video in the SDK Docs)

WPF is not a another set of wrappers for the old Win32 API. It really
is a whole new game.

--

Martin

My System SpecsSystem Spec
Old 05-14-2006   #3 (permalink)
iNSaNey


 
 

Re: Control.Handle - How do I get a handle to a control with WinFX

Hi,

>From what I can tell the muiltimedia API in WPF doesn't cut it for

recording and has a lack of filter support.

All I'm really trying to do is get directshow playback working in a
panel (something that wasn't that hard in win32).

I will take a look at ElementHost. Though I would prefer not to use
win32 controls if it's possible.

Thanks for the info

Shane

My System SpecsSystem Spec
 

Thread Tools


Similar Threads
Thread Forum
invalid handle Vista performance & maintenance
Easy to get handle from listbox. How to get listbox from handle? .NET General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46