m_HtmlViewInstance = ::LoadLibrary(L"htmlview.dll");
VERIFY(InitHTMLControl(AfxGetInstanceHandle()));
::SetWindowLong(m_hwndHtml, GWL_ID, IDC_HTMLVIEW);
m_hwndHtml = ::CreateWindow(DISPLAYCLASS, NULL, dwStyle, rect.left, rect.top, rect.right, rect.bottom, m_hWnd, 0, m_HtmlViewInstance, NULL);
All of this is working well, but now we are attempting to process the input, and we want to handle input differently if there is a horizontal scroll bar in the HTML window.
I tried using GetScrollInfo(m_hwndHtml, SB_HORZ, &si) with &si zeroed out except for cbSize and fMask = SIF_RANGE (and have attempted other masks), but it's GetScrollInfo always returns null.
Is there another way to detect the scrollbar using htmlview If not, is there a way to detect the viewable width of a window (which I could then compare to the coordinates of the window to determine if there is a scroll bar or not)