void ClientWindowDock::AddNotifyList(void) { BRect notifyFrame(fWorkingFrame); notifyFrame.top = fWorkingFrame.bottom - label_height() + 2; fWorkingFrame.bottom = fWorkingFrame.bottom - (notifyFrame.Height() + 1); fNotifyAgent = new AgentDockNotifyList(notifyFrame); AddChild(fNotifyAgent); }
void FlexHelperImplWin::updateStyle(HWND hwnd) { if (_dwmEnabled) { DWORD dwStyle = GetWindowLongPtr(hwnd, GWL_STYLE); DWORD rsStyle = WS_THICKFRAME | WS_DLGFRAME | WS_VSCROLL | WS_HSCROLL; if (dwStyle & rsStyle) { RECT rc; _lock = TRUE; SetWindowLongPtr(hwnd, GWL_STYLE, dwStyle & ~rsStyle); GetWindowRect(hwnd, &rc); SendMessage(hwnd, WM_NCCALCSIZE, FALSE, (LPARAM)&rc); if (_windowFlags & Qt::WindowMinimizeButtonHint) { dwStyle |= WS_MINIMIZEBOX; } if (_windowFlags & Qt::WindowMaximizeButtonHint) { dwStyle |= WS_MAXIMIZEBOX; } if (_windowFlags & Qt::WindowSystemMenuHint) { dwStyle |= WS_SYSMENU; } SetWindowLongPtr(hwnd, GWL_STYLE, dwStyle | WS_CAPTION); _lock = FALSE; notifyFrame(hwnd); } } else { DWORD dwStyle = GetWindowLongPtr(hwnd, GWL_STYLE); DWORD rsStyle = WS_DLGFRAME | WS_VSCROLL | WS_HSCROLL; if (dwStyle & rsStyle) { RECT rc; _lock = TRUE; SetWindowLongPtr(hwnd, GWL_STYLE, dwStyle & ~rsStyle); GetWindowRect(hwnd, &rc); SendMessage(hwnd, WM_NCCALCSIZE, FALSE, (LPARAM)&rc); SetWindowLongPtr(hwnd, GWL_STYLE, dwStyle); _lock = FALSE; redrawFrame(hwnd); } } }