Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Possible values for SendMessage.
Message
 
 
To
08/05/2001 12:25:21
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00504795
Message ID:
00504818
Views:
20
>I'm trying to change the font of the DateTimePicker using SendMessage( lnWHandle, DTM_SETMCFONT, wParam, lParam) but don't know the values for the last two parameters.
>Is this the proper way? Ideas anyone?
>
>TIA.
>
>Iraldo

wParam in this case is a handle to the a font. You can use CreateFont or CreateFontIndirect to create a font and return a handle. CreateFontIndirect requires a LOGFONT structure and VFP does not handle structures very well. However, because this structure is finite in length (composed of a series of DWORDS and a fixed length string), it can be simulated in VFP using a long character string. Check out Cristof Lange's STRUCT class in the Downloads section to use for this. The CreateFont function takes a bunch of parameters so that may be easier.

lParam is a logical to tell the control to redraw itself. You need to pass in a 0 for .F. or 1 for .T..

HTH.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform