Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do VFP controls fake it?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01037136
Message ID:
01037968
Vues:
18
>> Is there a way to change the color of the caret?
>
>MSDN description of CreateCaret function:
>http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/resources/carets/caretreference/caretfunctions/createcaret.asp
>
>DECLARE INTEGER CreateCaret IN user32;
>	INTEGER hWnd, INTEGER hBitmap,;
>	INTEGER nWidth, INTEGER nHeight
>
>The second parameter -- if not zero -- is handle to the bitmap that defines the caret shape. To load bitmap image from a file and get its handle, use GDI LoadImage function or similar GDI+ function(s):
>#DEFINE LR_LOADFROMFILE 16
>#DEFINE IMAGE_BITMAP  0
>
>DECLARE INTEGER LoadImage IN user32;
>	INTEGER hinst, STRING lpszName, INTEGER uType,;
>	INTEGER cxDesired, INTEGER cyDesired, INTEGER fuLoad
>
>hBitmap = LoadImage(0, "c:\Windows\Metal Links.bmp", IMAGE_BITMAP,;
>	0,0, LR_LOADFROMFILE)
>...
>* on exit
>= DeleteObject(hBitmap)
>
Thanks!
Dawa Tsering


"Do not let any unwholesome talk come out of your mouths,
but only what is helpful for building others up according to their needs,
that it may benefit those who listen."

- Ephesians 4:29-30 NIV

Dare to Question -- Care to Answer

Time is like water in a sponge, as long as you are willing you can always squeeze some.

--Lu Xun, Father of Modern Chinese Literature

Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform