-
November 21st, 2012, 03:29 AM
#1
Make a combo-box drop UP in MFC
Hi,
I'm using MFC, and I need to make the combo box drop down list to be draw up - above the contro, instead of below it.
Does anyone know how to make this happen?
Thanks,
yakobom
-
November 21st, 2012, 04:51 AM
#2
Re: Make a combo-box drop UP in MFC
AFAIK Windows itself chooses how to display the combobox dropdown control (below or above) depending on the current combobox position on the screen.
Victor Nijegorodov
-
November 21st, 2012, 05:07 AM
#3
Re: Make a combo-box drop UP in MFC
Yes, I know - but I still need it... Windows cannot know that it drops down on something that the user needs to see and use at that moment... And I'm trying to find a way rather then implementing my own drop window.
yakobom
-
November 21st, 2012, 08:37 AM
#4
Re: Make a combo-box drop UP in MFC
Originally Posted by yakobom
Yes, I know - but I still need it... Windows cannot know that it drops down on something that the user needs to see and use at that moment...
Then you have to find some other place for your combo. Or change the selection control to something else, as the standard combo is not able to do what you want.
Best regards,
Igor
-
November 21st, 2012, 10:26 AM
#5
Re: Make a combo-box drop UP in MFC
subclass the listbox that's being created, and move if to where you want. You could even have it anywhere on the screen (although that won't be handy )
You can use GetComboBoxInfo to get the handle of the listbox.
Tags for this Thread
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
|