#include <shlguid.h>
ChildWnd* g_pChildWnd;
-static int last_split;
+static int last_split = -1;
HBITMAP SizingPattern;
HBRUSH SizingBrush;
WCHAR Suggestions[256];
const int nButtonWidth = 44;
const int nButtonHeight = 22;
int cyEdge = GetSystemMetrics(SM_CYEDGE);
- const UINT uFlags = SWP_NOZORDER | SWP_NOACTIVATE;
- SetRect(&rt, 0, 0, cx, cy);
+ const UINT uFlags = SWP_NOZORDER | SWP_NOACTIVATE | SWP_NOCOPYBITS;
+
cy = 0;
- if (hStatusBar != NULL)
+ if (IsWindowVisible(hStatusBar))
{
GetWindowRect(hStatusBar, &rs);
cy = rs.bottom - rs.top;
}
+
GetWindowRect(g_pChildWnd->hAddressBtnWnd, &rb);
+ GetClientRect(g_pChildWnd->hWnd, &rt);
+ RedrawWindow(g_pChildWnd->hWnd, &rt, NULL, RDW_INVALIDATE | RDW_NOCHILDREN);
+
g_pChildWnd->nSplitPos = ClampSplitBarX(g_pChildWnd->hWnd, g_pChildWnd->nSplitPos);
cx = g_pChildWnd->nSplitPos + SPLIT_WIDTH / 2;
{
RECT rt;
HGDIOBJ OldObj;
- HDC hdc = GetDC(hWnd);
+ HDC hdc = GetDCEx(hWnd, NULL, DCX_CACHE);
if(!SizingPattern)
{
{
SizingBrush = CreatePatternBrush(SizingPattern);
}
- GetClientRect(hWnd, &rt);
+
+ GetWindowRect(g_pChildWnd->hTreeWnd, &rt);
+ MapWindowPoints(NULL, hWnd, (POINT *)&rt, sizeof(rt) / sizeof(POINT));
+
rt.left = x - SPLIT_WIDTH/2;
rt.right = x + SPLIT_WIDTH/2+1;
OldObj = SelectObject(hdc, SizingBrush);
// For now, the Help dialog item is disabled because of lacking of HTML Help support
EnableMenuItem(GetMenu(hWnd), ID_HELP_HELPTOPICS, MF_BYCOMMAND | MF_GRAYED);
GetClientRect(hWnd, &rc);
- CreateWindowExW(0, szChildClass, NULL, WS_CHILD | WS_VISIBLE,
+ CreateWindowExW(0, szChildClass, NULL,
+ WS_CHILD | WS_VISIBLE | WS_CLIPCHILDREN | WS_CLIPSIBLINGS,
rc.left, rc.top, rc.right - rc.left, rc.bottom - rc.top,
hWnd, (HMENU)0, hInst, 0);
break;