>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.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao