Questions tagged [hwndhost]
34 questions
1
vote
1 answer
Multiple Exes running in WPF Application
My Solution has 3 wpf applications, each an exe. The main exe (called as Parent) has a menu from where I want to call (open) the other two exes. I am able to do that by process.start (myexe) and assign it to the window handle of the parent…

chiku coder
- 11
- 3
1
vote
2 answers
Force BuildWindowCore member of a HwndHost derived class to be called
I use a class derived from HwndHost to host a Win32 window. It is in turn used within a user control. That user control doesn't get shown (Visibility) unless the internal Win32 window gets successfully created. However, the BuildWindowCore method…

Charles
- 2,642
- 3
- 33
- 53
1
vote
1 answer
Implement HwndHost to handle MouseMove and MouseWheel in C# WPF
I am trying to host DirectX content inside WPF app. What I learnt from this link is to subclass
HwndHost and create your own implementation of WndProc as well BuildWindowCore and DestroyWindowCore.…

Jay Nanavaty
- 1,089
- 1
- 15
- 29
1
vote
0 answers
Moving (dragging) HwndHost using mouse
Here's what I am trying to accomplish - To create an MDI application in WPF, which can host child web applications. I am using WPF webbrowser control to render web applications. WPF inherently doesn't seem to support MDI applications, so after a bit…

Chintan S
- 98
- 1
- 8
1
vote
1 answer
Hosted window in WPF doesn't get mouse messages
Taking it a bit further than hosting WinForms user controls in my WPF application, I am actually hosting Delphi forms, i.e. top level windows. I am doing so through the voodoo in blog post How To Host Top-Level HWNDs In WPF.
Nearly everything works…

ProfK
- 49,207
- 121
- 399
- 775
1
vote
0 answers
What windows messages must I handle when I host a Win32 window inside a WPF control?
So far, I only know I must listen for WM_CLOSE, which is a request to close, and WM_DESTROY, which is when the window is actually destroyed after closing. I need to handle these because I need to avoid a useless Win32 host view with a closed Win32…

ProfK
- 49,207
- 121
- 399
- 775
1
vote
1 answer
Pass all keyboard and mouse input from wpf-host application to hosted out of process win32 client. (using HwndHost)
I have an old application (game) that starts at location 0, 0 and is dialog styled. Cant move it the regular way, cant resize, very annoying. I have no access to the source code, just the compiled application.
I am hosting this application in a wpf…

Huron
- 1,055
- 1
- 9
- 16
0
votes
1 answer
How to make binding take effect before calling BuildWindowCore method in HwndHost
I have a WPF project where I want to launch multiple programs and embed them into my application. I have a class that inherits from HwndHost and implements the BuildWindowCore abstract method. I also registered a dependency property called FileName,…

Empty Character
- 1
- 1
0
votes
0 answers
I want to have a button with a higher z order than hwndHost in wpf
I want to have a button with a higher z order than hwndHost in wpf. Changing the z index in grid, panel and canvas did not work. Sources found in msdn documents state the hosted window in hwndHost will always stay on of other WPF elements in the…

Fayyaaz
- 1
- 2
0
votes
1 answer
Hosting of Delphi Controls in a WPF Application using Com Component not working for Delphi Buttons, checkbox , radio and date picker?
I have Created a Delphi control with ActiveX Library and hosted it in WPF app using COM type library.
I can see the Label and Delphi side background template colors loaded successfully in WPF but it's not showing controls such as button, Datepicker,…

V J
- 77
- 12
0
votes
0 answers
HwndHost leaks memory
we have an external video player to which i need to give a reference to a HwndHost, and then the external video player renders into it.
all works fine, but i cant find out why memory is leaked, as new HwndHosts are created.
here is my HwndHost…

Milan
- 616
- 5
- 11
0
votes
1 answer
Desynchronize refresh of a Unity window embedded in a WPF application with HwndHost
I'm working on a WPF application embedding a Win32 application (Unity window) thanks to a HnwdHost.
For performances reasons, we are obliged to set the framerate of the unity window to 30 FPS. However, when the other user controls of the WPF…

Vivien DELSART
- 11
- 2
0
votes
1 answer
HwndHost doesn't display content when Desktop Composition is enabled
I'm using HwndHost to embed an external application in my WPF window. I noticed on some Windows 7 machines, if an Aero Theme is selected and Desktop Composition is enabled, the external application starts, flickers on the screen for a split second…

muku
- 238
- 1
- 7
- 20
0
votes
1 answer
WndProc not called in hosted process in wpf
Following the instructions in:
How to run an application inside wpf application?
and in the walkthrough in MSDN (https://msdn.microsoft.com/en-us/library/ms752055.aspx)
I have managed to host my console applications in wpf. (Note: there are more…

Kai
- 143
- 1
- 4
- 11
0
votes
0 answers
Sending WM_INPUT keyboard messages to a HWNDHOST application
I'm still new to C# and WPF, as a learning exercise I'm building a simple wrapper in WPF on a unmanaged win32 C++ application. I currently have the unmanaged application hosted using HWNDHOST in a WPF control and am receiving WM_INPUT messages for…

Bobby Anguelov
- 31
- 5