|
-
April 27th, 1999, 05:08 AM
#1
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
-
April 27th, 1999, 07:20 AM
#2
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|