Few ideas after testing that in Linux/Wine:
In HWND CreateToolBarWnd(HWND hWndParent, HINSTANCE hInst)
WS_EX_CLIENTEDGE -> 0
remove | WS_BORDER
// Create the toolbar.
hWndTB = CreateWindowEx(0,
TOOLBARCLASSNAME,
(LPTSTR) NULL,
WS_CHILD | CCS_TOP | TBSTYLE_TOOLTIPS,
0, 0, 0, 0,
hWndParent,
(HMENU) ID_TOOLBAR,
hInst,
NULL);
Just another way to do that:
LRESULT FrameWndProc_OnSize(HWND hwnd, int flag, int x, int y)
{
// ReSize the various child windows
SendMessage(g_hWndStatusBar, WM_SIZE, flag, x);
SendMessage(g_hWndToolBar, WM_SIZE, flag, x);
SizeStatusPanels(hwnd, g_hWndStatusBar, numParts);
// Position the MDI client window between the tool and status bars
if (flag != SIZE_MINIMIZED)
{
RECT rcStat, rcClient;
GetClientRect(hwnd, &rcClient);
GetClientRect(g_hWndToolBar, &rcStat);
rcClient.top = rcStat.bottom + 3;
rcClient.bottom = rcClient.bottom - rcStat.bottom - 3;
GetClientRect(g_hWndStatusBar, &rcStat);
rcClient.bottom = rcClient.bottom - rcStat.bottom;
MoveWindow(g_hWndClient, rcClient.left, rcClient.top, rcClient.right, rcClient.bottom, TRUE);
}
return 0;
}