继续菜鸟问题。。Combo box 显示问题

luocan1986 2009-08-12 10:20:00
case WM_CREATE:

CreateWindow(TEXT("Combo Box"),TEXT(""), WS_VSCROLL | WS_BORDER | WS_VISIBLE | WS_CHILD,
100, 100, 205, 100, hWnd, (HMENU)IDC_ComBox1, g_hInst, NULL);

// Add items to combobox.
for (i = 0; i < 20; i++)
{
// Since we're owner draw, we don't pass a string


wsprintf (szOut, TEXT ("Item %d"), i);

SendDlgItemMessage (hWnd, IDC_ComBox1, CB_ADDSTRING, 0, (LPARAM)szOut);
}
// Set initial selection.
SendDlgItemMessage (hWnd, IDC_ComBox1, CB_SETCURSEL, 0, 0);

这样在一个Hello world 工程里头创建一个Combo box 为什么不显示了?还缺什么步骤么?
...全文
52 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

19,502

社区成员

发帖
与我相关
我的任务
社区描述
硬件/嵌入开发 嵌入开发(WinCE)
社区管理员
  • 嵌入开发(WinCE)社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧