Rich Edit control works ok but doesn't allow setting of TF_PLAINTEXT:
returns 0 which is supposed to indicate success according to the api docs. But it's not plain text because I can drag formatted text (with various fonts etc) into the control. And checking the format after setting seems to show it's still in TM_RICHTEXT mode:
any suggestions?
Code:
SendMessage(mhEditCtrl, EM_SETTEXTMODE, TM_PLAINTEXT, 0);
returns 0 which is supposed to indicate success according to the api docs. But it's not plain text because I can drag formatted text (with various fonts etc) into the control. And checking the format after setting seems to show it's still in TM_RICHTEXT mode:
Code:
testval = SendMessage(mhEditCtrl, EM_GETTEXTMODE, 0, 0);
if(testval & TM_RICHTEXT) //returns true.
any suggestions?