|
如果是EVC的话:
- LRESULT DoNotifyCyyyDlg1 (HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam)
- {
- INT nIndex, idItem;
- LPNMHDR pnmh;
- HWND hwndLV;
- NMLVDISPINFO *pLVdi;
- DBPERSONNEL Personnel;
- int j = 0;
- int k = 0;
- // 初始化
- idItem = wParam;
- pnmh = (LPNMHDR)lParam;
- hwndLV = pnmh->hwndFrom;
-
- // 列表
- if (idItem == IDC_LISTVIEW)
- {
- switch (pnmh->code)
- {
- case NM_DBLCLK:
- // 有效操作判断
- nIndex=ListView_GetSelectionMark(hwndLV);
- if(nIndex != -1)
- {
- PostMessage (hWnd, WM_COMMAND, MAKELPARAM (IDB_PERSONNEL_MODIFY, 0), 0);
- return TRUE;
- }
- break;
复制代码 |
|