This topic has not yet been rated - Rate this topic

WM_FONTCHANGE message

Applies to: desktop apps only

An application sends the WM_FONTCHANGE message to all top-level windows in the system after changing the pool of font resources.

To send this message, call the SendMessage function with the following parameters.

SendMessage( 
  (HWND)  hWnd,              
  WM_FONTCHANGE,            
  (WPARAM)  wParam,          
  (LPARAM)  lParam            
);

Parameters

This message has no parameters.

Remarks

An application that adds or removes fonts from the system (for example, by using the AddFontResource or RemoveFontResource function) should send this message to all top-level windows.

To send the WM_FONTCHANGE message to all top-level windows, an application can call the SendMessage function with the hwnd parameter set to HWND_BROADCAST.

Requirements

Minimum supported client

Windows 2000 Professional

Minimum supported server

Windows 2000 Server

Header

Winuser.h (include Windows.h)

See also

Fonts and Text Overview
Font and Text Messages
AddFontResource
RemoveFontResource

 

 

Send comments about this topic to Microsoft

Build date: 3/7/2012

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ
SendMessage values
//C#
static IntPtr HWND_BROADCAST = new IntPtr(0xFFFF);
const int WM_FONTCHANGE = 0x1D;

'VB
Dim HWND_BROADCAST as New IntPtr(&HFFFF)
Const WM_FONTCHANGE as Integer = &H1D