X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/bbda1088f7995eec084f450141d1071052473106..ba81034d1a2fc216b0da7fca140d2b786478862b:/src/html/htmlwin.cpp diff --git a/src/html/htmlwin.cpp b/src/html/htmlwin.cpp index a0fd8ace9f..9316bf7019 100644 --- a/src/html/htmlwin.cpp +++ b/src/html/htmlwin.cpp @@ -387,6 +387,11 @@ bool wxHtmlWindow::HistoryBack() return TRUE; } +bool wxHtmlWindow::HistoryCanBack() +{ + if (m_HistoryPos < 1) return FALSE; + return TRUE ; +} bool wxHtmlWindow::HistoryForward() @@ -413,6 +418,12 @@ 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()