Franky Braem
April 29th, 1999, 02:07 AM
Hi,
When I'm changing the style to ES_READONLY in the PreCreateWindow method of my CEditView I loose the ES_MULTILINE style and some other styles.
My code is as follows :
BOOL CMyEditView::PreCreateWindow(CREATESTRUCT &cs)
{
cs.style |= ES_READONLY;
return CEditView::PreCreateWindow(cs);
}
Am I doing something wrong by using the | operator ?
When I'm changing the style to ES_READONLY in the PreCreateWindow method of my CEditView I loose the ES_MULTILINE style and some other styles.
My code is as follows :
BOOL CMyEditView::PreCreateWindow(CREATESTRUCT &cs)
{
cs.style |= ES_READONLY;
return CEditView::PreCreateWindow(cs);
}
Am I doing something wrong by using the | operator ?