CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 1999
    Posts
    6

    how to make aComboBox that looks like the explorer one

    the technicalities first:
    This is made in VC5 and I'm not allowed to use CComboBoxEx

    I created an CComboBox with the following alterations
    DropdownList
    Ownerdrawn, Has strings

    I did a SetDataItemPtr to accomodate an structure in it.

    the things in the structure
    hIcon
    nIndent

    in the DrawItem
    I get the nIndent to move the text shown an number of times equal to nIndent.
    there is only 1 problem I don't want the item shown in the static box to move in the static box only.

    So in the listbox the item should be indented but not if the user has selected it and put it in the static box


  2. #2
    Join Date
    Apr 1999
    Posts
    6

    solved it. missed 1 itemstate

    the Comboboxedit value of itemstate in the Drawstruct


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