how to override UUserWidget OnPaint

Could you show what worked for you with nativepaint(). I’m having difficulty overriding it
image
[1/2] Compile CRHFMS.cpp
C:\Users\mcalister\Documents\Unreal Projects\FlightVisionProject 5.0\Source\FlightVisionProject\CRHFMS.h(77): error C3668: ‘UCRHFMS::OnPaint’: method with override specifier ‘override’ did not override any base class methods
[2/2] Compile CRHFMS.gen.cpp
C:\Users\mcalister\Documents\Unreal Projects\FlightVisionProject 5.0\Source\FlightVisionProject\CRHFMS.h(77): error C3668: ‘UCRHFMS::OnPaint’: method with override specifier ‘override’ did not override any base class methods