Implement SetVisited()/GetVisited()

and set the visited state when the link is clicked
This commit is contained in:
Paul Cornett
2015-09-03 09:30:42 -07:00
parent 45767ff6d9
commit 2fbd2a7800
2 changed files with 32 additions and 0 deletions

View File

@@ -19,6 +19,7 @@
class WXDLLIMPEXP_ADV wxHyperlinkCtrl : public wxGenericHyperlinkCtrl
{
typedef wxGenericHyperlinkCtrl base_type;
public:
// Default constructor (for two-step construction).
wxHyperlinkCtrl() { }
@@ -60,6 +61,9 @@ public:
virtual wxString GetURL() const wxOVERRIDE;
virtual void SetURL(const wxString &url) wxOVERRIDE;
virtual void SetVisited(bool visited = true) wxOVERRIDE;
virtual bool GetVisited() const wxOVERRIDE;
virtual void SetLabel(const wxString &label) wxOVERRIDE;
protected: