C++ Programming
04-02-2009, 01:50 AM
I've a SDI Application and want to Enable/Disable some menu items under some specific conditions. My CAppView is derived from CRichEditView and I used the following code to find if it's changed since I set the Modification Flah (using SetModify) or not:
//Some conditions
GetRichEditCtrl().SetModify( FALSE ) ;
//Some other conditions
GetRichEditCtrl().SetModify( TRUE ) ;
/////////////////////////////////////////////////
if ( GetRichEditCtrl().GetModify() )
{
// Do something
}
but GetRichEditCtrl().GetModify() allways returns TRUE, even if I set GetRichEditCtrl().SetModify( TRUE )
Any idea?
Thank you masters!
//Some conditions
GetRichEditCtrl().SetModify( FALSE ) ;
//Some other conditions
GetRichEditCtrl().SetModify( TRUE ) ;
/////////////////////////////////////////////////
if ( GetRichEditCtrl().GetModify() )
{
// Do something
}
but GetRichEditCtrl().GetModify() allways returns TRUE, even if I set GetRichEditCtrl().SetModify( TRUE )
Any idea?
Thank you masters!