Thread: adding font to a combo box

  1. #1
    Registered User
    Join Date
    Mar 2009

    adding font to a combo box

    I have created a list box using this code...

    hFontTypeButton = CreateWindowEx( 0, WC_COMBOBOXEX,      
    				(HINSTANCE)GetWindowLong( hDnaToolBar, GWL_HINSTANCE ),
    I can see the listbox or combobox (whatever it's called) in my window and I want to add all the fonts on my system (the ones in the C:\Windows\Fonts folder) but I have no idea how to do this. Can anyone help me? Thanks.

  2. #2
    Kernel hacker
    Join Date
    Jul 2007
    Farncombe, Surrey, England
    Perhaps this will help?

    It may not be EXACTLY what you want (or rather, because it's C++ builder, it may do it in a slightly different way than you would add things to the combo box), but the basic principle of finding the fonts, etc, I think is the same.

    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. adding font to a list box or combo box
    By supernater in forum Windows Programming
    Replies: 2
    Last Post: 03-13-2009, 05:53 AM
  2. Create new combo boxes based on items selected in preview combo box
    By RealityFusion in forum Windows Programming
    Replies: 2
    Last Post: 01-10-2007, 09:50 AM
  3. problem with my font manager
    By hannibar in forum C Programming
    Replies: 1
    Last Post: 03-07-2006, 08:03 AM
  4. No data showing in combo box
    By PJYelton in forum Windows Programming
    Replies: 6
    Last Post: 04-29-2005, 07:20 PM
  5. New Theme
    By XSquared in forum A Brief History of
    Replies: 160
    Last Post: 04-01-2004, 08:00 PM