Washington (CNN) President Donald Trump complained Wednesday that he didn't receive a thank you for approving the funeral the late Sen. John McCain wanted, marking his latest grievance in his recent onslaught against the Arizona Republican.

"I endorsed him at his request, and I gave him the kind of funeral that he wanted, which as President I had to approve. I don't care about this. I didn't get thank you. That's OK. We sent him on the way. But I wasn't a fan of John McCain," Trump said during a speech Wednesday at a tank factory in Lima, Ohio.

Last year, McCain died of brain cancer, and as part of his services, lay in state in the Capitol building in Washington.

Trump's remark about the funeral came as the President has continued to denigrate the dead senator's legacy.

Read More