Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem with interface font.
Message
 
 
À
19/08/2004 04:21:51
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00934409
Message ID:
00934488
Vues:
26
Canh,

Try
DECLARE INTEGER SendMessage IN USER32.DLL ;
   INTEGER hWnd, ;
   INTEGER Msg, ;
   INTEGER wParameter, ;
   INTEGER lParameter
#DEFINE HWND_BROADCAST 0xFFFF
#DEFINE WM_FONTCHANGE  0x001D 
=SendMessage(HWND_BROADCAST,WM_FONTCHANGE,0,0)
>In my VFP prog, I load a dll file to change title, menu and tolltip fonts of Windows, because I must use interface with Vietnamese (codepage 1252). However, the first time starting my prog, it do not effect with Vietnamese. After that, I quit my prog then restart my prog the second time, it is OK. In addition, with the first time starting my prog, if I make a shell (ShellExecute function)to run another VFP’s app, it works good with Vietnamese interface.
>I think the first time, my prog do not “refresh” with new GDI fonts of Windows.
>Which API do I use to solve that problem in my VFP prog?
>Please help me!
>
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform