使用ListBox的一个小问题,如何使ListBox在ListBox.InsertString(最后一行)或ListBox.AddrString()后,滚动条自动滚到最下面一行的位置!?
解决方案 »
- strPersent.Format( "已下载 %4.2f%s", nPercent*100, "%"); 显示“已下载 -1.#J%”
- 高分征解:关于SPI,如何屏蔽WSPRecv
- 如何取消任务栏总在最前面的选项(100分,在线等...)
- 一个类的构造函数的参数中如果有指针类型,当这个类的资源释放时,会不会也将这些指针参数的资源也给释放掉呢?
- 菜鸟提问关于动态连接数据库的问题(不要扔砖),VC+ADO+Access
- 百分求解bmptojpg 程序
- 如何判断一个指针为空?
- lib问题?
- 上位机通过PS2读写可编程键盘
- 实时获取数据库变化的通知?
- 怎么样将0x01234567 --->"01234567" 注意前面的0也要有。
- error #3105 这个错误怎么出现的?(ADO)
int nBar, // scroll bar flag
int nPos, // new position of scroll box
BOOL bRedraw // redraw flag
);用这个api
static int a=1;
CString str;int b=0;
str.Format("第%d条",a++);
m_list.InsertString(m_list.GetCount(),str);
b=m_list.GetCount();
//m_list.SetFocus();
m_list.SetCurSel(b-1);
这样每次输入数据后,数据自动成为最后一条,而且选中的也是当前插入的这条