示例#1
0
INT_PTR CMraProto::MraWorld(WPARAM wParam, LPARAM)
{
    DWORD dwContactEMailMRCount = GetContactEMailCount(wParam, TRUE);
    if (dwContactEMailMRCount) {
        if (dwContactEMailMRCount == 1) {
            CMStringA szEmail;
            if (GetContactFirstEMail(wParam, TRUE, szEmail))
                MraMPopSessionQueueAddUrlAndEMail(hMPopSessionQueue, MRA_WORLD_URL, szEmail);
        }
        else MraSelectEMailDlgShow(wParam, MRA_SELECT_EMAIL_TYPE_WORLD);
    }
    return 0;
}
示例#2
0
INT_PTR CMraProto::MraAnswers(WPARAM wParam, LPARAM lParam)
{
	if (!m_bLoggedIn)
		return 0;

	DWORD dwContactEMailMRCount = GetContactEMailCount((HANDLE)wParam, TRUE);
	if (dwContactEMailMRCount) {
		if (dwContactEMailMRCount == 1) {
			CMStringA szEmail;
			if (GetContactFirstEMail((HANDLE)wParam, TRUE, szEmail))
				MraMPopSessionQueueAddUrlAndEMail(hMPopSessionQueue, MRA_ANSWERS_URL, szEmail);
		}
		else MraSelectEMailDlgShow((HANDLE)wParam, MRA_SELECT_EMAIL_TYPE_ANSWERS);
	}
	return 0;
}
示例#3
0
INT_PTR CMraProto::MraSendPostcard(WPARAM wParam, LPARAM)
{
    DWORD dwContactEMailCount = GetContactEMailCount(wParam, FALSE);
    if (dwContactEMailCount) {
        if (dwContactEMailCount == 1) {
            CMStringA szUrl, szEmail;
            if (GetContactFirstEMail(wParam, FALSE, szEmail)) {
                szEmail.MakeLower();
                szUrl.Format("http://cards.mail.ru/event.html?rcptname=%S&rcptemail=%s", pcli->pfnGetContactDisplayName(wParam, 0), szEmail);
                MraMPopSessionQueueAddUrl(hMPopSessionQueue, szUrl);
            }
        }
        else MraSelectEMailDlgShow(wParam, MRA_SELECT_EMAIL_TYPE_SEND_POSTCARD);
    }
    return 0;
}
示例#4
0
INT_PTR CMraProto::MraSendEmail(WPARAM wParam, LPARAM)
{
    DWORD dwContactEMailCount = GetContactEMailCount(wParam, FALSE);
    if (dwContactEMailCount) {
        if (dwContactEMailCount == 1) {
            CMStringA szUrl, szEmail;
            if (GetContactFirstEMail(wParam, FALSE, szEmail)) {
                szEmail.MakeLower();
                szUrl.Format("https://e.mail.ru/cgi-bin/sentmsg?To=%s", szEmail);
                MraMPopSessionQueueAddUrl(hMPopSessionQueue, szUrl);
            }
        }
        else MraSelectEMailDlgShow(wParam, MRA_SELECT_EMAIL_TYPE_SEND_POSTCARD);
    }
    return 0;
}
示例#5
0
INT_PTR CMraProto::MraSendPostcard(WPARAM wParam, LPARAM lParam)
{
	if (!m_bLoggedIn)
		return 0;

	DWORD dwContactEMailCount = GetContactEMailCount((HANDLE)wParam, FALSE);
	if (dwContactEMailCount) {
		if (dwContactEMailCount == 1) {
			CMStringA szUrl, szEmail;
			if ( GetContactFirstEMail((HANDLE)wParam, FALSE, szEmail)) {
				szEmail.MakeLower();
				szUrl.Format("http://cards.mail.ru/event.html?rcptname=%s&rcptemail=%s", GetContactNameA((HANDLE)wParam), szEmail);
				MraMPopSessionQueueAddUrl(hMPopSessionQueue, szUrl);
			}
		}
		else MraSelectEMailDlgShow((HANDLE)wParam, MRA_SELECT_EMAIL_TYPE_SEND_POSTCARD);
	}
	return 0;
}