Moves back to the previous page. (each page displayed using
\helpref{LoadPage}{wxhtmlwindowloadpage} is stored in history list.)
+\membersection{wxHtmlWindow::HistoryCanBack}\label{wxhtmlwindowhistorycanback}
+
+\func{bool}{HistoryCanBack}{\void}
+
+Returns true if it is possible to go back in the history (i.e. HistoryBack()
+won't fail).
+
+\membersection{wxHtmlWindow::HistoryCanForward}\label{wxhtmlwindowhistorycanforward}
+
+\func{bool}{HistoryCanForward}{\void}
+
+Returns true if it is possible to go forward in the history (i.e. HistoryBack()
+won't fail).
+
+
\membersection{wxHtmlWindow::HistoryClear}\label{wxhtmlwindowhistoryclear}
\func{void}{HistoryClear}{\void}
bool HistoryForward();
// Goes to previous/next page (in browsing history)
// Returns TRUE if successful, FALSE otherwise
+ bool HistoryCanBack();
+ bool HistoryCanForward();
+
void HistoryClear();
// Resets history
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()