向左扩展的ComboBox下拉列表 [英] ComboBox dropdown list that expand to the left

查看:110
本文介绍了向左扩展的ComboBox下拉列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我的组合框"下拉列表中列出的字符串的长度超过了我的组合框"的宽度.为了解决这个问题,我使用了 CComboBox :: SetDroppedWidth 来增加下拉列表的宽度.

但是,包含ComboBox的对话框位于屏幕的右侧.有时,没有足够的屏幕区域显示下拉列表.

我想做的是将ComboBox下拉列表扩展到左侧,而不是将普通框扩展到右侧.这样,无论ComboBox的大小如何,下拉列表都可以完整显示所有选项.您知道如何实现此目标吗?

Hi,

The length of the string listed in my ComboBox dropdown list exceeds the width of my ComboBox. To fix this, I used CComboBox::SetDroppedWidth to increase the dropdown list width.

However, the dialog containing the ComboBox is located at the right side of my screen. At times, there are not enough screen area to display the dropdown list.

What I''m trying to do is have the ComboBox dropdown list expands to the left, instead of the normal expands to the right. This way, the dropdown list can display all the options in full, regardless of the ComboBox size. Any idea how I can achieve this?

推荐答案

您可能会找到
You may find SetHorizontalExtent()[^] can help you.


这篇关于向左扩展的ComboBox下拉列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆