Sign in to follow this  

Rich Edit Controls

This topic is 3954 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, I'm making a little syntax highlighter for my scripting language and it's all working the way it should, but during updating of the text colouring etc, sometimes you can notices the flickers when I'm selecting each bit of text to format it. i.e. SendMessage (hRECtrl, EM_SETSEL, wordStart, wordEnd); SendMessage (hRECtrl, EM_SETCHARFORMAT, 0, (LPARAM) &cr); // etc I tried using the LockWindowUpdate function to stop it from updating the window until I'm finished, as well as trying to update the formatting in the EN_UPDATE notification but those too proved to be quite hideous. Lock window update would slow it to a halt, and doing it on EN_UPDATE would keep on updating it constantly which was freaky. I'm currently updating the formatting on EN_CHANGE notification (i.e. when u type a character in the edit control) which is seemingly the place you should do it, but I just want to get rid of the flickering. Any solutions? Thanks in advance.

Share this post


Link to post
Share on other sites

This topic is 3954 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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