Login
 
Archive
Links
Search
Blog List
There are no categories in this blog.
 
May 25

Written by: Jeremiah Morrill
5/25/2007 7:01 AM 

 

I have a habit of getting real excited about ish and end up showing off things that are not finished.  A handful of people where curious about how I got a win32 control to composite into WPF.  I spent a couple hours refactoring the source for some readability.

This will make it so you can put any Win32 control into WPF compositing engine.  This means reflections, transformations and 3D!  More work needs to be done to make it interactive while transformations and 3D are being used.

Please remember this is just proof of concept code that was slapped together.  I am well aware of all the bugs in it!  :).

Here's the code to download:

Win32 / WPF Composite Prototype -  WPFInterop.zip

Tags:

7 comment(s) so far...

Re: Composited Win32 in WPF prototype source-code

Simply put, wow! I don't know of anyone else that's doing this type of research, keep up the wonderful work!

By John on   5/29/2007 6:20 AM

Re: Composited Win32 in WPF prototype source-code

I don't know if it's a bug, but it's a very wierd effect.
It seems that even if that app is behind a window, it grabs onto the mouse cursor, taking the capture away from the window on top.
For instance, while on this page, I have that app running in the background. If a certain part of the app is directly behind this comment box, I can't click in the comment box.

By Anon on   6/15/2007 1:45 PM

Re: Composited Win32 in WPF prototype source-code

Great Work! I used this part in combination with 3DTools and got great results, however I'm interested in getting rid of initial frame and viewing only result window on the screen. Are you still working on this? I'd like to help if you want...

By Levan on   7/1/2007 8:15 PM

Re: Composited Win32 in WPF prototype source-code

When I used this part in combination with 3DTools , the application said that it can not find "interopRenderScreenPoint" ... how could i solve this problem..

By ChenShen on   7/7/2007 4:35 AM

Re: Composited Win32 in WPF prototype source-code

When I used 3DTools , it tell me "not connected to PresentationSource".What should I do?

By Chen Shen on   7/7/2007 6:06 AM

Re: Composited Win32 in WPF prototype source-code

It was a little jerky for me, but for the cost of a couple more % CPU cycles I was able to get VERY smooth performance by not calling start on the rendering timer and instead adding the following code to the InitializeRendererTimer() method.

CompositionTarget.Rendering += new EventHandler(CompositionTarget_Rendering);

The CompositionTarget_Rendering method just calls RenderWinformControl(), and the result is exceptionally smooth scrolling. At least for me.

By Ross on   7/17/2007 1:13 AM

Re: Composited Win32 in WPF prototype source-code

http://jmorrill.hjtcentral.com/DesktopModules/Blog/ImageChallenge.captcha.aspx?captcha=D06F053B5938DC1DC8191617D3D09728C5D0734048F732D0BCFF6652611D0F4EEF5B6702E2A80C847F0B6C23D924AA2739244023F72318CEB4CD40356EA88ED3C8FDB0357383E2E8383514172D8DEB16544455241C28655C2AA4912169B17B915C9993DFB95B57DA81A7E285006D6CB5FCD9B2A3E106BB3DF1C42B9FBEB560BE&alias=jmorrill.hjtcentral.com

By http://jmorrill.hjtcentral.com/DesktopModules/Blog on   7/21/2008 2:27 AM

Your name:
Your email:
(Optional) Email used only to show Gravatar.
Your website:
Title:
Comment:
Security Code
Enter the code shown above in the box below
Add Comment   Cancel 
  Minimize
Text/HTML Minimize
Copyright 2007
Downloaded from DNNSkins.com