wxHtmlWindow: fixed passing flags to wxScrolledWindow

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@7652 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2000-06-28 15:56:38 +00:00
parent e1ce4782d4
commit 0e591a96d8

View File

@@ -41,7 +41,7 @@ WX_DEFINE_OBJARRAY(HtmlHistoryArray)
wxHtmlWindow::wxHtmlWindow(wxWindow *parent, wxWindowID id, const wxPoint& pos, const wxSize& size,
long style, const wxString& name) : wxScrolledWindow(parent, id, pos, size, wxVSCROLL | wxHSCROLL, name)
long style, const wxString& name) : wxScrolledWindow(parent, id, pos, size, style | wxVSCROLL | wxHSCROLL, name)
{
m_tmpMouseMoved = FALSE;
m_tmpLastLink = NULL;
@@ -282,7 +282,7 @@ void wxHtmlWindow::CreateLayout()
if (!m_Cell) return;
if (m_Style == wxHW_SCROLLBAR_NEVER) {
if (m_Style & wxHW_SCROLLBAR_NEVER) {
SetScrollbars(wxHTML_SCROLL_STEP, 1, m_Cell -> GetWidth() / wxHTML_SCROLL_STEP, 0); // always off
GetClientSize(&ClientWidth, &ClientHeight);
m_Cell -> Layout(ClientWidth);