LB_GETSEL
An application sends an LB_GETSEL message to retrieve the selection state of an item. LB_GETSEL
wParam = (WPARAM) index; // item index
lParam = 0; // not used; must be zero
Parameters
index
Value of wParam. Specifies the zero-based index of the item.
Windows 95 and Windows 98: The wParam parameter is limited to 16-bit values. This means list boxes cannot contain more than 32,767 items. Although the number of items is restricted, the total size in bytes of the items in a list box is limited only by available memory. Return Values
If an item is selected, the return value is greater than zero; otherwise, it is zero. If an error occurs, the return value is LB_ERR. QuickInfo
Windows NT: Requires version 3.1 or later.
Windows: Requires Windows 95 or later.
Windows CE: Requires version 1.0 or later.
Header: Declared in winuser.h.See Also
List Boxes Overview, List Box Messages, LB_SETSEL
An application sends an LB_GETSEL message to retrieve the selection state of an item. LB_GETSEL
wParam = (WPARAM) index; // item index
lParam = 0; // not used; must be zero
Parameters
index
Value of wParam. Specifies the zero-based index of the item.
Windows 95 and Windows 98: The wParam parameter is limited to 16-bit values. This means list boxes cannot contain more than 32,767 items. Although the number of items is restricted, the total size in bytes of the items in a list box is limited only by available memory. Return Values
If an item is selected, the return value is greater than zero; otherwise, it is zero. If an error occurs, the return value is LB_ERR. QuickInfo
Windows NT: Requires version 3.1 or later.
Windows: Requires Windows 95 or later.
Windows CE: Requires version 1.0 or later.
Header: Declared in winuser.h.See Also
List Boxes Overview, List Box Messages, LB_SETSEL
解决方案 »
- 想从事delphi开发工作需要哪些条件
- 求助!
- 今天是南京大屠杀纪念日,不过版内也有人被屠杀了,经典大放分,会有意想不到的收获哦!!!!!!!!!!!!!
- 如果我只想改变我所选的单元格的内容应该怎么处理呢(不存数据库内)
- 一个极菜问题,偶初学delphi,现在对“句柄“的用法和含义弄不清?哪位帮个忙嘛
- 关于字符串!
- Delphi中的DLL调用中的参数传递问题
- 如何快速实现将文本文件(8万行文本)导成Sql_server数据库表?
- 哪位兄台送我(帮忙申请,密码被盗,我处申请实在搞不定)一个QQ号,我送220分。thanks
- 有关日期显示问题,请各位高手帮助!谢谢!!
- 怎样使form在屏幕上的位置固定,无法被拖动?
- up也行,帮帮忙
应该就可以了
lParam和wParam因为消息的不同,会有不同的意义。