Mike,
Simple enough to make it not crash. You defined
Function: LBItemFromPt ( hLB pPoint bAutoScroll -- item# )
based on reading the api definition
int LBItemFromPt(
HWND hLB,
POINT pt,
BOOL bAutoScroll
);
This is one of the *really* misleading features in the api.
Note the second parameter of type POINT -- this is a structure
passed in the stack frame, which occupies two paramter entries.
So the correct definition of the api call is
Function: LBItemFromPt ( hLB px py bAutoScroll -- item# )
Hope this helps.
Rick VanNorman
*********** REPLY SEPARATOR ***********
On 11/5/2000 at 5:50 PM Mike Ghan wrote:
>Has anyone been successful implementing "Drag List Boxes" inside
>of a dialog? It appears to be fairly straight forward but after
>a full day of trying, I can't get past a page fault in Kernel.dll
>when I attempt to execute LBItemFromPt in the definition
>DRAGGER (about half way down). File attached is about 100 lines.
Received on Mon Nov 06 2000 - 07:50:14 PST
Subscribe to our e-mail list service. It's free for all SwiftForth and SwiftX users!
This archive was generated 09-Feb-2012. Archive updated nightly.