case WM_NOTIFY_PARENT:
{
int NCode = pMsg->Data.v; /* Get notification code */
int Id = WM_GetId(pMsg->hWinSrc); /* Get control ID */
switch (NCode) {
case WM_NOTIFICATION_RELEASED: /* React only if released */
case WM_NOTIFICATION_CLICKED: <-----------增加这一句
if (Id == GUI_ID_OK) {
GUI_EndDialog(hWin, 0); /* End dialog with return value 0 if OK */
}
break;