Page 1 of 1

SetCapture on Standard Window

Posted: Wed Jul 05, 2006 12:38 am
by theomania
Hi there,

Having a bit of trouble using SetCapture when the window is NOT layered. When layered, i followed the example you have given for translucent windows. The Setcapture works great in this scenario (subclassing the original window proc).

If I try to do exactly the same thing, but make the window standard (i.e. NOT layered), I set the capture in the same way, but i dont get any mousemove messages at all.

What would be the best method to achieve this? Any help is appreciated.

T.

Re: SetCapture on Standard Window

Posted: Wed Jul 05, 2006 8:43 am
by Softanics
theomania wrote:If I try to do exactly the same thing, but make the window standard (i.e. NOT layered), I set the capture in the same way, but i dont get any mousemove messages at all.


i.e. you have a main window with flashplayercontrol as a child window? If yes, you should SetCapture(hwnd_AX), where hwnd_AX = GetWindow(GetWindow(hwnd_FPC, GW_CHILD), GW_CHILD). To handle mouse messages, you should set your own windowproc for hwnd_AX.