windows_programming_notes.nbk: Home | Index | Next Page: WM_GETDLGCODE | Previous Page: WM_EXITSIZEMOVE


 WM_FONTCHANGE

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,              // handle to destination window 
      WM_FONTCHANGE,            // message to send
      (WPARAM) wParam,          // not used; must be zero
      (LPARAM) lParam           // not used; must be zero
    );

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


windows_programming_notes.nbk: Home | Index | Next Page: WM_GETDLGCODE | Previous Page: WM_EXITSIZEMOVE


Notebook exported on Monday, 7 July 2008, 18:56:50 PM Eastern Daylight Time