我们经常会使用到组合框,而组合框是是有2种功能的
代码说明:
我们经常会使用到组合框,而组合框是是有2种功能的--下拉和列表。一般情况下,列表框的宽度和选择框是一样宽的,但是我们有些时候确实很需要把列表框的宽度变大,一便让我们能更好的看我们要选的东西。 为了能有这个功能,我写了下面的这个函数。首先得在你的对话框中添加一个的WM_CTLCOLOR的消息句柄,或者使用CComboBox的继承类,而且在其中添加下面的代码:-we often use to mix frame, and frames are combinations are two kinds of functions-- and the drop-down list. Under normal circumstances, the list box and the width of the selection box is the same width, but sometimes we need to do is list the width of the frame, one will enable us to better do our election of the things. To have this function, I wrote the following this function. First of all in your dialog box to add one of the news WM_CTLCOLOR handle, or use the inheritance CComboBox category, but which add the following code :
下载说明:请别用迅雷下载,失败请重下,重下不扣分!