if (m_HistoryPos < 1) return FALSE;
+ // store scroll position into history item:
+ int x, y;
+ ViewStart(&x, &y);
+ m_History[m_HistoryPos].SetPos(y);
+
+ // go to previous position:
m_HistoryPos--;
l = m_History[m_HistoryPos].GetPage();
return TRUE;
}
+bool wxHtmlWindow::HistoryCanBack()
+{
+ if (m_HistoryPos < 1) return FALSE;
+ return TRUE ;
+}
bool wxHtmlWindow::HistoryForward()
return TRUE;
}
+bool wxHtmlWindow::HistoryCanForward()
+{
+ if (m_HistoryPos == -1) return FALSE;
+ if (m_HistoryPos >= (int)m_History.GetCount() - 1)return FALSE;
+ return TRUE ;
+}
void wxHtmlWindow::HistoryClear()