69,382
社区成员
发帖
与我相关
我的任务
分享
case IDC_BUTTONDELL:
{
HWND hwndcombo1 = GetDlgItem (hwnd, IDC_COMBOLIST);
TCHAR str_DELL[MAX];
TCHAR str_FDELL[MAX];
int n;
GetDlgItemText (hwnd, IDC_EDITDELL, str_DELL, sizeof (str_DELL));
int dl = ComboBox_GetCount (hwndcombo1);
for (n = 0; n < dl; n++)
{
ComboBox_GetLBText(hwndcombo1, n, str_FDELL);
if ( 0 == strcmp (str_DELL, str_FDELL))
break;
}