SetCapture on Standard Window

DLL Edition of the F-IN-BOX
theomania
Posts: 12
Joined: Thu Nov 03, 2005 4:31 pm

SetCapture on Standard Window

Postby theomania » Wed Jul 05, 2006 12:38 am

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.

Softanics
Site Admin
Posts: 1402
Joined: Sat Sep 18, 2004 3:03 am
Location: Russia, St. Petersburg
Contact:

Re: SetCapture on Standard Window

Postby Softanics » Wed Jul 05, 2006 8:43 am

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.
Best regards, Artem A. Razin,
F-IN-BOX support
Ask your question here: http://www.f-in-box.com/support.html


Return to “DLL Edition”

Who is online

Users browsing this forum: No registered users and 14 guests