如何更改CComboBox编辑控件的高度? [英] How to change CComboBox edit control's height?

查看:586
本文介绍了如何更改CComboBox编辑控件的高度?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

CComboBox包含一个文本编辑窗口和一个下拉窗口。我打算更改文本编辑控件的高度。

CComboBox contains one text edit window and a dropdown window. I intend to change the text edit control's height. Any suggestion is appreciated.

推荐答案

来自MSDN:


调用SetItemHeight成员函数以设置组合框中列表项
的高度或组合框中编辑控件(或静态文本)
部分的高度。 / p>

Call the SetItemHeight member function to set the height of list items in a combo box or the height of the edit-control (or static-text) portion of a combo box.



m_comboBox.SetItemHeight( -1 /*edit control*/, 15 /*height in pixels*/ );

这篇关于如何更改CComboBox编辑控件的高度?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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