Jump to content
Sign in to follow this  
Cedomir Plavljanic

TRIchEdit clear background in standard windows but not in styled version

Recommended Posts

I have a strange problem with TRichEdit.
I create a transparent successor to the TRichEdit class with an image as background.
If styled is active all work. But if is standard windows active do not work properly.

In message WM_ERASEBKGND I first erase background and then paint image but when windows draw content of richedit class it first call FillRect and clear background. This das not happen with styled version. 
What Delphi change in settings for trichedit in styled version when this approach work? I can not find reason for that.

Both version call procedure CallWindowProc from user32  and in this procedure clear again background in standard version but not in style version. 

See pictures

standard.png

Styled.png

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×