pData = (PDATA)GetWindowLongPtr(hwndDlg, DWLP_USER);switch(uMsg) {caseWM_INITDIALOG: { OnInitDialog(hwndDlg, pData);break; }caseWM_DESTROY: {if(pData->PrevWindowPi.hProcess) {TerminateProcess(pData->PrevWindowPi.hProcess,0); CloseHandle(pData->PrevWindowPi.hProcess); CloseHandle(pDat...
1、OnOK()或OnCancel()//只对窗口程序有用 2、PostQuitMessage(0);//最常用 3、ExitProcess(0);4、发送WM_CLOSE消息,如: SendMessage(WM_CLOSE, 0, 0); 5、TerminateProcess 6、CDialog.Destroy() 7、exit(0); 8、 void CMai 3d 应用程序 开始菜单 类名 C 转载 mb5fe18fed96438 2011-04-06 ...