Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
RightClick() in RTF-Control
Message
From
21/04/2005 11:13:35
 
 
To
21/04/2005 09:29:11
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Environment versions
Visual FoxPro:
VFP 6 SP5
Miscellaneous
Thread ID:
01006403
Message ID:
01007040
Views:
20
Hello Herman

Thank you much - works like a charm. i have now clue how i came up with so many lines of code - and then it didn't even work <vbg>.

thank you again for your help!


>Hi Gunnar,
>
>I had converted my code to VFP code. Just a few lines of code *bg*. Modify the foolowing code according to your needs
>
>Declare Long GetCursorPos in User32 String @cPoint
>Declare Long ScreenToClient in User32 Long hWnd, String @cPoint
>
>Declare Long SendMessage in User32 as SendMessageStr ;
>   Long hWnd, Long uMsg, Long wParam, String @lParam
>
>lc_Point = space(8)
>GetCursorPos( @lc_Point )
>ScreenToClient( ThisForm.RichEdit.hWnd, @lc_Point )
>ThisForm.RichEdit.SelStart = SendMessageStr( ThisForm.RichEdit.hWnd, EM_CHARFROMPOS, 0, lc_Point )
>
>
>HTH
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform