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

Threaded View

  1. #1
    Join Date
    Jul 2002
    Posts
    20

    problem from owner draw CComboBox with different list items' height.

    Hello gurus,

    I have an owner draw CComboBox with different list items' height. On some cases, the list box of combo box will hold some empty place at the bottom if you drop down the combo box.

    For example, In MeasureItem(), if you set item1's height to 20, item2's height to 10, then some empty place will be at the bottom of the dropeed list box, though for some items height pairs, there will be no empty place.

    My question is: is there any way to set the height of the list box of the combo box? so that I can remove the empty place at the bottom.

    Attach file is the simple test project.
    Any idea is welcome.

    Regards
    Yao Liwei
    Last edited by yaoliwei2000; May 30th, 2004 at 04:56 AM.

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