Canvas is not defined in override HUD::DrawHUD

Hello everyone. I have a problem when I write my own HUD.
Here is my override funtcion:
void AMyHUD::DrawHUD()
{
Super::DrawHUD();
SizeX = Canvas->SizeX;
SizeY = Canvas->SizeY;

DrawMessages();

}
Visual Studio thew C2027 error that Canvas is not define. Can you help me, please.

Maybe you are just missing the include? Don’t worry about Intellisense errors though, only care about what you get in the output log when compiling.

#include "Engine/Canvas.h"