Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Date/Time Picker Colors
Message
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00416608
Message ID:
00417662
Views:
21
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform