15,979
社区成员
发帖
与我相关
我的任务
分享
BOOL CALLBACK EditorProc(HWND hwnd, MSG msg, WPARAM wParam , LPARAM lParam)
{
static HWND hList =GetDlgItem(hwnd,IDC_LIST_SHOW);
switch(msg)
{
case WM_INITDIALOG:
return TRUE;
case WM_COMMAND:
switch(LOWORD(wParam))
{
case IDC_REMOVE:
g_index = SendMessage(hList,LB_GETCURSEL,0,0);//总是返回0 啊
if(LB_ERR==g_index)
MessageBox(hwnd,L"没有选中任何选项",L"错误",MB_OK);
else
{
g_data_list.Remove(g_index);
g_string_list.Remove(g_index);
UpdateList();
}
break;
..................
..................}
}