+ 2
MFC combo box height of drop down
Hi I have added a combo box on MFC dialog. It's width i have extended as per my need into designer itself. I am concerned about height of the combobox when user clicks on arrow to select an item from a list. Please note that I don't want to increase visible area of single item on list... What I want is how many items are visible at a time. For example, list has values A, B, C , D and E. What I want is to show all five values to user for selection of one when user clicks on drop list of combobox. . Any thoughts would be of great help.
4 odpowiedzi
+ 2
Hi Ketan,
I just found these from web search, hope either one actually works;
https://dotnetbutchering.blogspot.com/2008/03/vc-mfc-how-to-set-combobox-dropdown.html
https://stackoverflow.com/questions/28151691/how-to-increase-the-height-of-the-combobox-control-in-mfc
+ 1
Martin Taylor nd Ipang , thanks for sharing these.
None of these worked for me. In fact I have custom class for combo box which is inturn derived from cComboBoxEx. I tried all these options , but none of them worked
Any thoughts on this issue ?
+ 1
Ketan,
Sorry about that. Actually, I was only sharing a finding from web search cause Idk MFC, left alone control customisation in it.
I think you might improve your chances by also posting this in MFC specific forums that you know, to get specialists answers.
Good luck! 👍