wenigtelefonier
Newcomer
- Joined
- Dec 4, 2007
- Messages
- 3
Hi,
my applications consists of several Forms which can overlap each other. I can start actions by dragging and dropping a graphical element onto a form. The dragged element is actually represented by a form, too. To do this correctly I've got to know if the mouse cursor is above a visible part of the target form or if the target form is overlapped by another form at the current mouse cursor position.
I cannot use win32.WindowFromPoint. This would get me the handle of the topmost window, which normally would be what I'd like to have. But as I am dragging a From the "topmost" window is always the very Form which I am dragging. The target zone would then be the second topmost form under the mouse cursor. Do you have any idea how I can achieve this? Any help would be greatly appreciated.
Thank you.
David.
my applications consists of several Forms which can overlap each other. I can start actions by dragging and dropping a graphical element onto a form. The dragged element is actually represented by a form, too. To do this correctly I've got to know if the mouse cursor is above a visible part of the target form or if the target form is overlapped by another form at the current mouse cursor position.
I cannot use win32.WindowFromPoint. This would get me the handle of the topmost window, which normally would be what I'd like to have. But as I am dragging a From the "topmost" window is always the very Form which I am dragging. The target zone would then be the second topmost form under the mouse cursor. Do you have any idea how I can achieve this? Any help would be greatly appreciated.
Thank you.
David.