Combobox dropdown

This is a discussion on Combobox dropdown within the Windows Programming forums, part of the Platform Specific Boards category; I've created a combobox with the CBS_DROPDOWNLIST style, and added some strings with CB_ADDSTRING. The strings are loaded in the ...

  1. #1
    Registered User
    Join Date
    Feb 2003
    Posts
    9

    Combobox dropdown

    I've created a combobox with the CBS_DROPDOWNLIST style, and added some strings with CB_ADDSTRING.

    The strings are loaded in the combobox, but it won't drop down. It works fine in Windows XP, but the problem is coming in Windows 98. Anybody have any ideas?

    Thanks,
    Chris

  2. #2
    Registered User
    Join Date
    Feb 2003
    Posts
    9

    Re: Combobox dropdown

    Isn't it funny how you can spend 3 days searching for something, then finally post the question, only to find the answer minutes later?

    Anyway, in case anyone is interested, when you specify the height of your combo box, it includes the visible part and the dropdown part. So if you enter 20 as your cb's height as I did, the dropdown list will not show up, because the height doesn't include enough room for it. Change the height to 200 (or the total height you want) and everything works.

    Chris

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. textBox, comboBox
    By Coding in forum C# Programming
    Replies: 4
    Last Post: 02-16-2008, 09:53 PM
  2. Trouble Adding to ComboBox (*not* an LB_ issue..)
    By roblarky in forum Windows Programming
    Replies: 1
    Last Post: 07-18-2007, 12:27 PM
  3. Ugh, ComboBox Woes
    By Zeusbwr in forum Windows Programming
    Replies: 11
    Last Post: 04-12-2005, 12:14 AM
  4. combobox reacts strangely to a mouse
    By johny145 in forum Windows Programming
    Replies: 2
    Last Post: 03-07-2005, 05:32 PM
  5. Win32 COMBOBOX 'Enter' Key??
    By tdk_ratboy in forum Windows Programming
    Replies: 0
    Last Post: 04-17-2004, 06:52 PM

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