Hu, also general secretary of the Communist Party of China (CPC) Central Committee and chairman of the Central Military Commission (CMC), was in the quake-hit area to console the victims and inspect the rescue and relief work.
He also visited the troops and medical workers who were engaged in around-the-clock relief efforts in the quake areas.
The death toll from the powerful earthquake rose to 22,069 nationwide as of 2 p.m. Friday, while 168,669 people were injured, according to the emergency response office of the State Council.
No give-up, says premier
Also Friday morning, Premier Wen Jiabao told Chinese media on a train in Sichuan that saving lives remained the top priority almost four days after the quake.
"We won't give up if there is even the slightest hope of finding more survivors," he said.
Wen said the quake was "the biggest and most destructive since new China was founded in 1949," and the quick response had helped reduce casualties to the greatest extent.
The premier vowed "to pour out whatever the country is capable of" to combat the massive disaster and fight until the end.
To move forward with relief work, the country needs confidence, resolution, perseverance and forceful organization work, he said.
"We believe that so long as we rely on the people, the military and the civilians unite together, the officials and the general public unite together, and together we stand, we will surely win this anti-quake battle," Wen stressed.