Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with interface font.
Message
 
 
To
19/08/2004 04:21:51
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00934409
Message ID:
00934488
Views:
27
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--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform