Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > Avalon

How to move Window by Drag Child Win32 Window In WPF

Closed Thread
 
Thread Tools Display Modes
Old 07-16-2006   #1 (permalink)
=?Utf-8?B?SG93IHRvIERyYXcgQ2FwdGlvbiBCdXR0b24gSW4gV1BG?=
Guest


 

How to move Window by Drag Child Win32 Window In WPF

hello,everybody.
In a WPF window( parent ), the client area is a win32 window(child) by use
HWndHost. now the WPF window has no caption and want to move the window by
drag the child win32 window. I can't simply use DragMove when receive win32
Window's mousedown message, the system throw exception for mouse is not down.
Now what can I do? can i simulate the mouse down in wpf window?
thanks for any help.


Old 07-19-2006   #2 (permalink)
Nick Kramer [MSFT]
Guest


 

Re: How to move Window by Drag Child Win32 Window In WPF

To handle mouse input for the HwndHost, use hwnd-based APIs like
wm_mousemove.


--
-Nick Kramer [MSFT]
http://blogs.msdn.com/nickkramer

This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

"How to Draw Caption Button In WPF"
<HowtoDrawCaptionButtonInWPF@discussions.microsoft.com> wrote in message
news:BB529F7A-FCBF-4242-854F-0528A134E285@microsoft.com...
> hello,everybody.
> In a WPF window( parent ), the client area is a win32 window(child) by use
> HWndHost. now the WPF window has no caption and want to move the window
> by
> drag the child win32 window. I can't simply use DragMove when receive
> win32
> Window's mousedown message, the system throw exception for mouse is not
> down.
> Now what can I do? can i simulate the mouse down in wpf window?
> thanks for any help.
>
>



Closed Thread

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
getting handle of child window with input focus Bob Vista General 1 3 Weeks Ago 05:38 PM
Drag and drop in CMD window? =?Utf-8?B?U0FNaW5PWg==?= Vista General 9 02-17-2008 03:24 PM
WPF Child Window Question Mikep Avalon 0 08-20-2007 11:34 PM
Can't Drag & Drop onto CMD window? Gerry Hickman Vista security 7 05-26-2007 08:22 PM
Host App in WPF child window wackyphill@yahoo.com Avalon 0 11-27-2006 07:20 AM








Vistax64.com 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 2005-2008

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 47 48 49 50