Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Disable the tooltip in the TreeView
Message
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00708003
Message ID:
00708303
Views:
15
Hi!

Doooh!!!

SetWindowLong sets a couple of flags. You require to GetWindowLong first to get existing state of the control, then add there required BIT flag. Try following code:
#define TVS_NOTOOLTIPS 128
#define GWL_STYLE -16

DECLARE INTEGER SetWindowLong IN win32api INTEGER, INTEGER, INTEGER
DECLARE INTEGER GetWindowLong IN win32api INTEGER, INTEGER

= SetWindowLong(ThisForm.oleTree.hwnd, GWL_STYLE, BITOR(TVS_NOTOOLTIPS, GetWindowLong(ThisForm.oleTree.hwnd, GWL_STYLE)))
We checked it here and it works.

I will send comments to the FAQ article to Neil in private message to fix FAQ content.

HTH.

>Hi All,
>
>Anybody resolved the problem of the tooltip coming up from the TreeView.
>It was mentioned in the FAQ #7930 but it does not work. It freezes the whole control.
>
>
>Thanks,
>
>Doron
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Reply
Map
View

Click here to load this message in the networking platform