一个典型的vc++智能电表校表软件应用程序源码somecodehere:switch(wParam){caseNM_OB_ITEMCLICK://castthelParamtoanintegertogettheclickeditem{intindex=(int)lParam;CStringcs,cs1;cs1=wndBar.GetItemText(index);cs.Format("Clickedon%d-",(int)lParam,cs1);//AfxMessageBox(cs);