Get the message that installed fonts changed?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I want to dynamically change the font combobox content. How to catch the
event or the message that installed fonts have been changed?

Thanks,
 
Gary,

What you would do is in your main form, you would override the WndProc
method. Then, you would look for the WM_FONTCHANGE message.

Or, you could implement the IMessageFilter interface and pass that
implementation to the static AddMessageFilter method on the Application
class in the System.Windows.Forms namespace. Of course, your implementation
of PreFilterMessage would look for the WM_FONTCHANGE message and process it
accordingly.

Hope this helps.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top