Click to See Complete Forum and Search --> : Check if a Rich edit control has been modified
dosh
September 4th, 2007, 09:02 PM
I'm have problems using EM_GETMODIFY with my rich edit control even if I make no changes to it, it always returns true. Firstly is EM_GETMODIFY right to be used with a rich edit control or only a edit control? Secondly if not is there an equivallent for a rich edit control. I'm trying to check if the rich edit controls (in a MDI) have changed before closing the program.
Any help much appreciated.
Boris K K
September 5th, 2007, 10:25 AM
1. In case you initialize the content of the control, you may need to EM_SETMODIFY, FALSE immediately after that.
2. If EM_GETMODIFY returns TRUE and you want to check for further changes (changes after the moment TRUE was returned) you probably should send EM_SETMODIFY, FALSE too.
dosh
September 6th, 2007, 03:20 AM
Thanks Boris KK it was a bit of the initialisation problem and also the use of a wrong handle. After checking through my program and with that tip of yours I've worked it out thanks.
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.