if (id == IDC_BUTTON1 && notifyCode == BN_CLICKED) { char    szPath[_MAX_PATH];
if (id == IDC_LIST1 && notifyCode == LBN_DBLCLK) { FORWARD_WM_COMMAND(m_hwndDlg, IDOK, GetDlgItem(m_hwndDlg, IDOK), BN_CLICKED, SendMessage); return TRUE;
CEditTypeDialog::OnCommand(int id, HWND hwndCtl, UINT notifyCode){	if (id == IDC_BUTTON1 && notifyCode == BN_CLICKED) {        char    szPath[_MAX_PATH];        if (BrowseForProgram(m_hInstance, m_hwndDlg, szPath))            Edit_SetText(GetDlgItem(m_hwndDlg, IDC_EDIT2), szPath);		return TRUE;//~~~	} else if ((id == IDC_RADIO1 || id == IDC_RADIO2 || id == IDC_RADIO3 || id == IDC_RADIO4 || id == IDC_RADIO5)                 && (notifyCode == BN_CLICKED)) {		// Check whether the check box to prompt before opening a downloaded		// file should be enabled		CheckControls();	}#ifdef MOZ_MAIL_NEWS	else if (id == IDC_USEASDEFAULT && notifyCode == BN_CLICKED)	{		// handle tri-state silliness		if (m_UseAsDefaultMIMEType == 0 || m_UseAsDefaultMIMEType == 2)	// off, or partial		{			m_UseAsDefaultMIMEType = 1;	// set it on for all of them		}		else		{			m_UseAsDefaultMIMEType = 0;	// it was on;  set it to off.		}		CheckBoxTransfer(IDC_USEASDEFAULT, m_UseAsDefaultMIMEType, FALSE);		return TRUE;	}#endif /* MOZ_MAIL_NEWS */	return CDialog::OnCommand(id, hwndCtl, notifyCode);}