Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Change margin used within tooltips via Windows API?
Message
De
19/05/2006 09:18:36
 
 
À
18/05/2006 14:34:15
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01123345
Message ID:
01123551
Vues:
38
This message has been marked as a message which has helped to the initial question of the thread.
Hi Malcolm,

>Short of using a separate tooltip class, is there any way to change the margins of VFP's native control tooltips?
>
>Is there a Windows message that we can bindevent() to and make a margin adjustment when the tooltip window appears?
>

Yes, however you have to work on it a little.

First you need to find the tooltip window. You can search using the classname. Find the classname for VFP. From the return ClassName, add '3' (for WinXP) behind the classname. Use that ClassName to search the window handle that has a WS_EX_TOOLWINDOW extended style, start from the desktop.

Once you found it, at the very least you could bind to WM_SHOWWINDOW, WM_ERASEBKGND and WM_WINDOWPOSCHANGED. If you want more control, you can also bind to WM_NCCALCSIZE, WM_MOVE, WM_SIZE and WM_WINDOWPOSCHANGING, WM_NCPAINT. But this is going to be hard

I think it's enough (much simpler) to bind to the first three I mentioned above. I don't have any code for this now, let me know if you need more help

Regards
Herman
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform