
problem compiling BBSystemBar 1.13b15
Code:
D:\sysbar6\BBSystemBar.cpp(1039): error: expression must have (pointer-to-) function type
if (GET_WHEEL_DELTA_WPARAM(&wParam) < 0)
in:
Code:
case WM_MOUSEWHEEL:
{
if (!linkToToolbar && (GetAsyncKeyState(VK_CONTROL) & 0x8000))
{
bool sizechanged = false;
KillTimer(hBBSystemBarWnd, 1);
if (GET_WHEEL_DELTA_WPARAM(wParam) < 0)
{
if (BBSystemBarWidthPercent > 5)
{
sizechanged = true;
BBSystemBarWidthPercent--;
}
}
else
{
if (BBSystemBarWidthPercent < 100)
{
sizechanged = true;
BBSystemBarWidthPercent++;
}
}
if (sizechanged)
SetTimer(hBBSystemBarWnd, 1, 1000, NULL);
UpdateBBSBPosition();
bTaskBackgroundsExist = false;
bBackgroundExists = false; // Forces re-rendering of the background bitmap
InvalidateRect(hBBSystemBarWnd, NULL, false);
MoveWindow(hBBSystemBarWnd, BBSystemBarX, BBSystemBarY, BBSystemBarWidth, BBSystemBarHeight, true);
/* if (pSettings->toolbarOnTop) SetWindowPos(pSystembar->hSystembarWnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOACTIVATE | SWP_NOSIZE | SWP_NOMOVE);
else SetWindowPos(pSystembar->hSystembarWnd, HWND_NOTOPMOST, 0, 0, 0, 0, SWP_NOACTIVATE | SWP_NOSIZE | SWP_NOMOVE);*/
}
}
break;
important note: GET_WHEEL_DELTA_WPARAM does not appear anywhere in the source other than there
there were other errors such as : TOOLBAR_TOP_LEFT (and some others) did not exist, but I replaced it with PLACEMENT_TOP_LEFT (and the others) which I hope was the corrent solution.