{
HWND hwnd = NULL, parent_hwnd = NULL;
RECT rect;
- DWORD dwStyle;
int top, left;
Lisp_Object border_width = Fcdr (Fassq (Qborder_width, f->param_alist));
{
/* If we want a thin border, specify it here. */
if (NUMBERP (border_width) && (XINT (border_width) > 0))
- f->output_data.w32->dwStyle =
- f->output_data.w32->dwStyle | WS_BORDER;
+ f->output_data.w32->dwStyle |= WS_BORDER;
}
else
/* To decorate a child frame, list all needed elements. */
- f->output_data.w32->dwStyle =
- f->output_data.w32->dwStyle | WS_THICKFRAME | WS_CAPTION
- | WS_MAXIMIZEBOX | WS_MINIMIZEBOX | WS_SYSMENU;
+ f->output_data.w32->dwStyle |= (WS_THICKFRAME | WS_CAPTION
+ | WS_MAXIMIZEBOX | WS_MINIMIZEBOX
+ | WS_SYSMENU);
}
else if (FRAME_UNDECORATED (f))
{
/* If we want a thin border, specify it here. */
if (NUMBERP (border_width) && (XINT (border_width) > 0))
- f->output_data.w32->dwStyle =
- f->output_data.w32->dwStyle | WS_BORDER;
+ f->output_data.w32->dwStyle |= WS_BORDER;
}
else
f->output_data.w32->dwStyle = WS_OVERLAPPEDWINDOW;
/* Always clip children. */
- f->output_data.w32->dwStyle = f->output_data.w32->dwStyle | WS_CLIPCHILDREN;
+ f->output_data.w32->dwStyle |= WS_CLIPCHILDREN;
rect.left = rect.top = 0;
rect.right = FRAME_PIXEL_WIDTH (f);