各位大哥请问
BOOL COglsView::PreCreateWindow(CREATESTRUCT& cs)
{
// TODO: Modify the Window class or styles here by modifying
// the CREATESTRUCT cs
cs.style |=WS_CLIPCHILDREN|WS_CLIPSIBLINGS;
return CView::PreCreateWindow(cs);
}
里cs.style |=WS_CLIPCHILDREN|WS_CLIPSIBLINGS;这句中的
“|=”是什么意思,是否与CREATESTRUCT这个结构有关?
BOOL COglsView::PreCreateWindow(CREATESTRUCT& cs)
{
// TODO: Modify the Window class or styles here by modifying
// the CREATESTRUCT cs
cs.style |=WS_CLIPCHILDREN|WS_CLIPSIBLINGS;
return CView::PreCreateWindow(cs);
}
里cs.style |=WS_CLIPCHILDREN|WS_CLIPSIBLINGS;这句中的
“|=”是什么意思,是否与CREATESTRUCT这个结构有关?
这个是C语言的运算符啊。
那一行语句相当于:
cs.style =cs.style | WS_CLIPCHILDREN|WS_CLIPSIBLINGS;
|=同militaryminiatures(++)。
等同於
A = A | B