I took a stab at it yesterday but the FPC windows unit is missing a ton of stuff vs Delphi.
I take it you have the source for TRichView...
Lots of declaration which are in the Delphi Windows-unit are still available for FPC in the jwa-units.
Look in fpc\packages\winunits-jedi\src
If you have a good string-finder (I like
Saleen ScanFs myself) you can search all *.pp; *.pas; *.inc files for the declarations your missing and include the unit it finds in your uses clause.
Otherwise post the things your missing here.
(Maybe there are alternatives)