Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Date/Time Picker Colors
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00416608
Message ID:
00417662
Vues:
20
>I have no idea if this will work. It's a shot in the dark, but it might. MS KB article Q178491 describes how to change the background color of a treeview control. The technique described in there might work with the Date/Time Picker. (And yes, the control does have it's own hWnd property, which you'll need for this to work).

Well George, I tried the SendMessage() part of this real quick to see if it would work but it didn't. But then I did it quick and may have done something stupid ...

Created a form, placed a DateTimePicker control on it and a button with the following code:

DECLARE INTEGER SendMessage IN WIN32API INTEGER, INTEGER, INTEGER, INTEGER
SendMessage( THIS.PARENT.oleDateTime.Object.hWnd, 4381, 0, RGB(255,0,0) )

Nothing happens, but I didn't check GetLastError() either so it may be erroring out on me.

Bill
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform