Osterreicher
November 2nd, 2000, 04:50 AM
how it's possible with windows 95 and 98
my program with class CRichEditClass and the paragraph:
void CAPadView::OnInitialUpdate()
{
CRichEditView::OnInitialUpdate();
CRichEditCtrl& theCtrl = GetRichEditCtrl();
theCtrl.SetBackgroundColor(FALSE,sColorBkg);
CHARFORMAT cfn;
cfn.cbSize = sizeof(cfn);
cfn.dwMask = CFM_FACE | CFM_SIZE | CFM_BOLD |CFM_COLOR
|CFM_ITALIC| CFM_STRIKEOUT| CFM_UNDERLINE|CFM_CHARSET;
cfn.yHeight = syheight;
cfn.dwEffects = sBold;
cfn.crTextColor = sColor;
_tcscpy(cfn.szFaceName,sValue.GetBuffer(20));
Char_cfn = cfn;
theCtrl.SetDefaultCharFormat(Char_cfn);
}
is'nt problem.
with Windows 2000 and the same paragrah for each new
frame not modified one box dialog is open with
this question "save changes to document?"
how make for avoid this dialog box?
tanks for your response.
my program with class CRichEditClass and the paragraph:
void CAPadView::OnInitialUpdate()
{
CRichEditView::OnInitialUpdate();
CRichEditCtrl& theCtrl = GetRichEditCtrl();
theCtrl.SetBackgroundColor(FALSE,sColorBkg);
CHARFORMAT cfn;
cfn.cbSize = sizeof(cfn);
cfn.dwMask = CFM_FACE | CFM_SIZE | CFM_BOLD |CFM_COLOR
|CFM_ITALIC| CFM_STRIKEOUT| CFM_UNDERLINE|CFM_CHARSET;
cfn.yHeight = syheight;
cfn.dwEffects = sBold;
cfn.crTextColor = sColor;
_tcscpy(cfn.szFaceName,sValue.GetBuffer(20));
Char_cfn = cfn;
theCtrl.SetDefaultCharFormat(Char_cfn);
}
is'nt problem.
with Windows 2000 and the same paragrah for each new
frame not modified one box dialog is open with
this question "save changes to document?"
how make for avoid this dialog box?
tanks for your response.