CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: Combo Box

  1. #1
    Join Date
    Apr 1999
    Posts
    18

    Combo Box

    Hi,
    How do i add a horizontal scroll bar for a combo box.
    This is very urgent.

    Thanks,
    Aparna.


  2. #2
    Join Date
    May 1999
    Posts
    116

    Re: Combo Box

    First set the style (in resource editor or in the Create call).
    Then you need to call SetHorizontalExtent to tell the combobox how much you want to be able to scroll. (Have a look at GetTextExtent() to figure out the width of a string).


  3. #3
    Join Date
    Apr 1999
    Posts
    6

    Re: Combo Box

    Since, at design time, there seems to be no way to do this, you may have to derive a class from CComboBox and override its OnCreate and set the WS_HSCROLL style. Look for more explanation in the CComboBox::Create.
    Hope this helps


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured