Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Possible values for SendMessage.
Message
 
 
À
08/05/2001 12:25:21
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00504795
Message ID:
00504818
Vues:
18
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform