INT_PTR TlenContactMenuHandleSendPicture(void *ptr, WPARAM wParam, LPARAM lParam) { HANDLE hContact; TlenProtocol *proto = (TlenProtocol *)ptr; if ((hContact=(HANDLE) wParam)!=NULL && proto->isOnline) { SendPicture(proto, hContact); } return 0; }
INT_PTR TlenProtocol::ContactMenuHandleSendPicture(WPARAM hContact, LPARAM) { if (hContact != NULL && isOnline) SendPicture(this, hContact); return 0; }