adding font to a list box or combo box

This is a discussion on adding font to a list box or combo box within the Windows Programming forums, part of the Platform Specific Boards category; I have created a list box using this code... Code: hFontTypeButton = CreateWindowEx( 0, WC_COMBOBOXEX, NULL, CBS_SIMPLE | WS_CHILD | ...

  1. #1
    Registered User
    Join Date
    Mar 2009
    Posts
    8

    adding font to a list box or combo box

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


    Code:
    hFontTypeButton = CreateWindowEx( 0, WC_COMBOBOXEX,      
    				NULL,
    				CBS_SIMPLE | WS_CHILD | WS_VISIBLE | CBS_DROPDOWNLIST,
    				55,2,170,23,hDnaToolBar,
    				(HMENU)IDB_FONTTYPE,
    				(HINSTANCE)GetWindowLong( hDnaToolBar, GWL_HINSTANCE ),
    				NULL);
    I can see the listbox in my window but I have no idea how to add a font to it. Can anyone help me do this? Thanks.

  2. #2
    Registered User
    Join Date
    Apr 2008
    Posts
    890
    I have no clue, but these guys probably do.

  3. #3
    Registered User
    Join Date
    Mar 2009
    Posts
    8
    Quote Originally Posted by medievalelks View Post
    I have no clue, but these guys probably do.
    Ah, I should have paid better attention when I submitted, I thought I had clicked on the Windows Programming forum.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. adding font to a combo box
    By supernater in forum Windows Programming
    Replies: 1
    Last Post: 03-13-2009, 07:11 AM
  2. No data showing in combo box
    By PJYelton in forum Windows Programming
    Replies: 6
    Last Post: 04-29-2005, 08:20 PM
  3. How to program a "back" button with MFC
    By 99atlantic in forum Windows Programming
    Replies: 3
    Last Post: 04-26-2005, 09:34 PM
  4. List box horizontal bar
    By cfriend in forum Windows Programming
    Replies: 1
    Last Post: 09-12-2004, 04:52 PM
  5. 1st Class LIST ADT
    By Unregistered in forum C++ Programming
    Replies: 1
    Last Post: 11-09-2001, 07:29 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21