用combo box控件中,选项个数受限的问题?
我的vc 程序中用到一个combo box 控件,在我用
m_Combo->InsertString(0,"000");
m_Combo->InsertString(1,"111");
m_Combo->InsertString(2,"2"); ...... m_Combo->InsertString(30,"30");
m_Combo->InsertString(31,"31");
添加选项时,到了30以后就不能在程序中被认出来,也就是在运行程序中,不能被显示出来,这个问题应该怎么解决,谢谢大家给点建议。
我的vc 程序中用到一个combo box 控件,在我用
m_Combo->InsertString(0,"000");
m_Combo->InsertString(1,"111");
m_Combo->InsertString(2,"2"); ...... m_Combo->InsertString(30,"30");
m_Combo->InsertString(31,"31");
添加选项时,到了30以后就不能在程序中被认出来,也就是在运行程序中,不能被显示出来,这个问题应该怎么解决,谢谢大家给点建议。
int InsertString( int nIndex, LPCTSTR lpszString );Return ValueThe zero-based index of the position at which the string was inserted. The return value is CB_ERR if an error occurs. The return value is CB_ERRSPACE if insufficient space is available to store the new string.
如果是高度的问题的话,你可以通过设置窗口高度来解决。
注意,对于这个控件,他的MoveWindow就是设置的整个的高度,包括了下拉列表的高度了。