![]() |
||
| Home | SwiftForth Archive | SwiftX Archive | |

ChildWindowFromPoint wants the value of the
POINT, not its address. That means putting the x and y
values right onto the stack.
This seems to work:
3 import: ChildWindowFromPoint ok
hwnd . 1948 ok
hwnd 1 1 ChildWindowFromPoint . 1940 ok
1940 GetParent . 1948 ok
hwnd 100 100 ChildWindowFromPoint . 1944 ok
1944 GetParent . 1948 ok
hwnd 200 200 ChildWindowFromPoint . 1944 ok
hwnd -1 -1 ChildWindowFromPoint . 0 ok
-- Bret ----- Original Message ----- From: "Robert Dickow" <dickow_at_uidaho.edu> To: "SF Talk" <sftalk_at_forth.com> Sent: Sunday, January 14, 2001 6:21 AM Subject: [sftalk] ChildWindowFromPoint vagaries > Has anybody played with the dll function ChildWindowFromPoint ? > I call it this way, but it doesn't work: > > 2 import: ChildWindowFromPoint > POINT builds MYPOINTSTRUCT 1 MYPOINTSTRUCT x ! 1 MYPOINTSTRUCT y ! > hMyWindow MYPOINTSTRUCT addr ChildWindowFromPoint ( Crash! ) > > I only get an INTEGER DIVIDE BY ZERO error. Now, there might be some > confusion on my part or everybody's part, because the Windows docs claim it > needs two parameters but--after wandering around the web, I find a few > references showing C code in which only the POINT structure address is > passed. It doesn't matter though, because it doesn't work called with one > parameter or two. SwForth simply won't execute when I try to. > > If anybody wants to know, I'm trying to subclass a couple of dropdown > ComboBoxes in the toolbar of my application's window. So, if anybody can see > my error here, I'll send you a big Hug and a Kiss! > > Thanks, Bob > > ************************************************** > ** Bob Dickow, dickow_at_uidaho.edu ** > ** USDA Zone 5 -- Vive le cor ---- *** > ************************************************** > > > _______________________________________________ > Sftalk mailing list Sftalk_at_forth.com > Visit Sftalk on the web at http://www.forthinc.com/mailman/listinfo/sftalk > >Received on Sun Jan 14 2001 - 06:20:05 PST
This archive was generated by hypermail 2.2.0 : Fri Nov 21 2008 - 03:04:27 PST