Example code:
HWND CreateButton(const HWND hParent,const HINSTANCE hInst,DWORD dwStyle,
const RECT& rc,const int id,const ustring& caption)
{
dwStyle|=WS_CHILD|WS_VISIBLE;
return CreateWindowEx(0,
_T("button"),
caption.c_str(),
dwStyle,
rc.left,
rc.top,
rc.right,
rc.bottom,
hParent,
reinterpret_cast<HMENU>(static_cast<INT_PTR>(id)),
hInst,
0);
}
The part I dont get is:
dwStyle|=WS_CHILD|WS_VISIBLE;
So the question would be why do we use '|' and whats it for? I've seen it being used in many other places, doest it even belong to C++? Something like '||' is obvious but cant figure out '|'.