How do I use the WM_SETFONT message to set the font and size of a edit box?
>How do I use the WM_SETFONT message to set the font and size of a edit >box? You create a font object and send a WM_SETFONT to the edit control. You have to ensure that the font object exists for the lifetime of the edit control, otherwise you'll probably see some strange behaviour. Dave
On Jul 4, 12:12 pm, David Lowndes <Dav...@example.invalid> wrote: > >How do I use the WM_SETFONT message to set the font and size of a edit > >box? > > You create a font object and send a WM_SETFONT to the edit control. > You have to ensure that the font object exists for the lifetime of the > edit control, otherwise you'll probably see some strange behaviour. > > Dave How do I create and delete a font object?
>> >How do I use the WM_SETFONT message to set the font and size of a edit >> >box? >> >> You create a font object and send a WM_SETFONT to the edit control. >> You have to ensure that the font object exists for the lifetime of the >> edit control, otherwise you'll probably see some strange behaviour. >> >> Dave > >How do I create and delete a font object? Use the CreateFont(Indirect) & DeleteObject APIs. Dave
On Jul 4, 3:42 pm, David Lowndes <Dav...@example.invalid> wrote: > Use the CreateFont(Indirect) & DeleteObject APIs. > > Dave Got it. Thank you.