win32 编程, sdk, 为什么ComboBox控件添加不上内容
我用的sendmessageSendMessage(hwndCombo,CB_INSERTSTRING,0,(LPARAM)TEXT("1"));SendMessage(...
我用的sendmessage
SendMessage(hwndCombo, CB_INSERTSTRING, 0, (LPARAM)TEXT("1"));
SendMessage(hwndCombo, CB_INSERTSTRING, 1, (LPARAM)TEXT("2"));
SendMessage(hwndCombo, CB_INSERTSTRING, 2, (LPARAM)TEXT("3"));
SendMessage(hwndCombo, CB_INSERTSTRING, 3, (LPARAM)TEXT("4"));
控件高度我也设置了
也加了这一句 SendMessage(hwndCombo, CB_SETCURSEL, 0, 0);
但还是不显示 展开
SendMessage(hwndCombo, CB_INSERTSTRING, 0, (LPARAM)TEXT("1"));
SendMessage(hwndCombo, CB_INSERTSTRING, 1, (LPARAM)TEXT("2"));
SendMessage(hwndCombo, CB_INSERTSTRING, 2, (LPARAM)TEXT("3"));
SendMessage(hwndCombo, CB_INSERTSTRING, 3, (LPARAM)TEXT("4"));
控件高度我也设置了
也加了这一句 SendMessage(hwndCombo, CB_SETCURSEL, 0, 0);
但还是不显示 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询