void RocketTaskbar::ClearMessageAndStopLoadAnimation()
{
    ClearMessage();
    StopLoadAnimation();
}
// [working on DUI thread]
void HeadModifyForm::PostLoadHeadImage()
{
	is_misc_thread_rendering_ = false; // MISC线程渲染完毕

	// [1]初始化头像画布
	head_view_ctrl_->SetFixedWidth(head_view_real_width_);
	head_view_ctrl_->SetFixedHeight(head_view_real_height_);
	head_view_ctrl_->SetMargin(head_view_padding_rect_);

	// [2]计算头像选区的初始位置
	int caption_panel_height = caption_container_->GetFixedHeight();
	RECT head_panel_inset = head_panel_->GetLayout()->GetPadding();
	int head_select_client_x = 0; // 头像选区起始位置(客户区坐标)
	int head_select_client_y = 0;
	head_select_client_y += caption_panel_height;
	RECT view_padding_rect = head_view_ctrl_->GetMargin();
	head_select_ctrl_->SetVisible();
	if(!load_global_last_image_)
	{
		// 设置初始大小
		head_select_ctrl_->SetFixedWidth(select_width_);
		head_select_ctrl_->SetFixedHeight(select_height_);
		// 计算初始位置(居中)
		int padding_x = view_padding_rect.left + (head_view_real_width_ - select_width_) / 2;
		int padding_y = view_padding_rect.top + (head_view_real_height_ - select_height_) / 2;
		// 设置初始位置
		RECT margin = {padding_x, padding_y, 0, 0};
		head_select_ctrl_->SetMargin(margin);
		// 计算头像选区的客户区坐标
		head_select_client_x += padding_x;
		head_select_client_y += padding_y;
	}
	else
	{
		// 加载历史选区位置
		select_width_ = select_height_ = g_last_select_width_;
		head_select_ctrl_->SetFixedWidth(select_width_);
		head_select_ctrl_->SetFixedHeight(select_height_);
		head_select_ctrl_->SetMargin(g_last_select_padding_);
		// 计算头像选区的客户区坐标
		head_select_client_x += g_last_select_padding_.left;
		head_select_client_y += g_last_select_padding_.top;
	}
	head_select_client_x += head_panel_inset.left;
	head_select_client_y += head_panel_inset.top;

	// [3]生成初始预览图
	RECT head_select_rect = {head_select_client_x, head_select_client_y,
		head_select_client_x + select_width_, head_select_client_y + select_height_};
	RECT head_view_rect = {head_panel_inset.left + view_padding_rect.left,
		caption_panel_height + head_panel_inset.top + view_padding_rect.top,
		0,0}; // 此时无法GetPos获取,只能手动计算
	head_view_rect.right = head_view_rect.left + head_view_real_width_;
	head_view_rect.bottom = head_view_rect.top + head_view_real_height_;
	RenderPreviewPicture(head_select_rect, head_view_rect, true); // 加载后用原图渲染

	// 按钮恢复可以用
	select_image_btn_->SetEnabled(true);
	save_image_btn_->SetEnabled(true);
	StopLoadAnimation();
	is_loading_image_ = false;
	load_global_last_image_ = false;

	// 判断是否用户要退出
	if(is_quit_)
	{
		// 用户在MISC渲染期间点击了退出,在这时候弹出退出提示
		is_quit_ = false;
		OnButtonClose();
	}
}