Browse Source

Add client edge pref

master
Dorian 6 years ago
parent
commit
3ca60f702a
  1. 3
      k-meleon/app/BrowserView.cpp
  2. 5
      k-meleon/app/ReBarEx.cpp

3
k-meleon/app/BrowserView.cpp

@ -243,7 +243,8 @@ BOOL CBrowserView::PreCreateWindow(CREATESTRUCT& cs)
if (!CWnd::PreCreateWindow(cs))
return FALSE;
//cs.dwExStyle |= WS_EX_CLIENTEDGE;
if (theApp.preferences.GetBool("kmeleon.display.clientEdge", false))
cs.dwExStyle |= WS_EX_CLIENTEDGE;
cs.style &= ~WS_BORDER;
cs.style |= WS_CLIPCHILDREN|WS_CLIPSIBLINGS;
cs.lpszClass = AfxRegisterWndClass(CS_DBLCLKS,

5
k-meleon/app/ReBarEx.cpp

@ -108,6 +108,11 @@ void CReBarEx::OnNcPaint()
void CReBarEx::SetNeedSeparator(bool aNeed)
{
if (theApp.preferences.GetBool("kmeleon.display.clientEdge", false)) {
mNeedSeparator = false;
return;
}
if (aNeed && m_dwStyle & CBRS_ALIGN_TOP)
SetBorders(0,0,0,2);
else if (aNeed && m_dwStyle & CBRS_ALIGN_BOTTOM)

Loading…
Cancel
Save