Mike
About pandora i reverted back to the Quo ante status.
And the trackbar tooltips are shown/used as soon as we are calling skCreateToolTip (no need to use the TBS_TOOLTIPS style first).
I made a few changes into the ToolWindow to better see the current value setting, without having first to click on the track bar.
Here is the WM_HSCROLL used in ToolWindow.h
case WM_HSCROLL:
hCtrl = (HWND)lParam;
gMinn.spotCur = SendMessage(hCtrl, TBM_GETPOS, 0, 0) * gMinn.spotStep;
swprintf_s(zTip, strSize(zTip), L"%2.0f", gMinn.spotCur);
skSetToolTipText(hCtrl, zTip);
SetWindowText(GetDlgItem(hWnd, IDT_VALUE02), zTip);
gP.redraw = -1; // request redraw
return 0;
Here is the WM_VSCROLL used in Main.cpp
case WM_VSCROLL: // ML 02-01-2018: scene brightness
hCtrl = (HWND) lParam;
if (hCtrl == GetDlgItem(hWnd, IDC_BRIGHT_CONTROL)) {
gP.rIllumFactor = SendMessage(hCtrl, TBM_GETPOS, 0, 0) / -100.0f;
SCALEILLUM(0); SCALEILLUM(1); SCALEILLUM(2); SCALEILLUM(3);
swprintf_s(zTxt, strSize(zTxt), L"brightness %2.0f", gP.rIllumFactor * 100 + 0.001f);
skSetToolTipText(hCtrl, zTxt);
gP.redraw = -1; // Redraw the OpenGL scene
}
break;