Questions tagged [hwndhost]

34 questions
0
votes
1 answer

How can I change the background of a window inside a WPF HwndHost?

I created a control derived from HwndHost in a WPF application. The HwndHost derived control is inside a UserControl. I would like to be able to set the background color of the window created inside the HwndHost (it's white by default, I'd like for…
0
votes
1 answer

WinAPI Copy System Menu to new Window

I am docking another application's window inside of my WPF window using HwndHost. To do this, I have to set the WS_CHILD style attribute of the window I am docking and I lose the system menu of that window which is not acceptable. Using HwndHost…
0
votes
1 answer

How to use Win32 SetCursor() with WPF resource and HwndHost

We have an HwndHost UIElement in our WPF application which is used to display Direct3d graphics, and the only way I have found to set a cursor for the HwndHost UIElment is to call the Win32 API SetCursor(). All of our cursors are resources in…
Hank
  • 193
  • 1
  • 10
-1
votes
1 answer

WPF host Win32 window frozen because of multiple WM_NCHITTEST when moving mouse over the bottom right corner

I have a WPF window that hosts Win32 window, I have class inherited from HwndHost. Everything seems to work fine except when I move the mouse over the bottom right corner of the WPF window, the window freezes. I used Spy++ to see what is going on.…
Aing
  • 116
  • 10
1 2
3