|
-
April 29th, 1999, 02:07 AM
#1
CEditView setting styles in PreCreateWindow : losing other styles
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 ?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|