• Advertisement

Archived

This topic is now archived and is closed to further replies.

Setting fonts for list boxes

This topic is 5951 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I have a list box that was created using CreateWindow, not a resource file. I''d like to know how to change\set its font. How do I?

Share this post


Link to post
Share on other sites
Advertisement
i think this will work:

SendMessage((HWND)YourListBoxHWnd, WM_SETFONT, (WPARAM)YourFont, MAKELPARAM(FALSE, 0));

where YourListBoxHWnd is the HWnd returned when you create the listbox, and YourFont is the font (a variable of type HFONT)...
i might be wrong, though

--- krez (krezisback@aol.com)

Share this post


Link to post
Share on other sites

  • Advertisement