c - 数字列表框

标签 c winapi listbox

我使用 SendMessage(hList, LB_SETITEMDATA, pos, (LPARAM) data ); 将名称添加到列表框。 但是如何将数字添加到列表框中?

最佳答案

试试这个

wsprintf( data, "%d", 10 );

关于c - 数字列表框,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11151592/

相关文章:

c# - 如何在 ASP MVC 4 中将项目从一个列表框移动到另一个列表框?

c - 段错误: 11 when trying to run a C file that calculates and stores all combinations of a binary string in an array

c# - 在 Windows 任务计划程序中更改已计划任务的运行时间

c - 如何在不引用 c 对象的情况下导入使用 FFI 的 haskell 模块?

c# - Web 服务无法打开命名管道 - 访问被拒绝

winapi - 如何检测硬盘驱动器是否通过 USB 连接?

c# - ASP.Net 列表框 : maintain listbox scrolling position after partial postback (not site scrolling position! )

c# - 如何将列表框中列出的产品数量直接减去到我的产品数据库中? (MySQL)

c - 地板浮点模数

c - 使用daemon和inotify在C中制作一个文件监视器