1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/msw/hyperlink.h
3 // Purpose: Hyperlink control
4 // Author: Rickard Westerlund
6 // Copyright: (c) 2010 wxWidgets team
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
10 #ifndef _WX_MSW_HYPERLINK_H_
11 #define _WX_MSW_HYPERLINK_H_
13 #include "wx/generic/hyperlink.h"
15 // ----------------------------------------------------------------------------
17 // ----------------------------------------------------------------------------
19 class WXDLLIMPEXP_ADV wxHyperlinkCtrl
: public wxGenericHyperlinkCtrl
22 // Default constructor (for two-step construction).
26 wxHyperlinkCtrl(wxWindow
*parent
,
28 const wxString
& label
, const wxString
& url
,
29 const wxPoint
& pos
= wxDefaultPosition
,
30 const wxSize
& size
= wxDefaultSize
,
31 long style
= wxHL_DEFAULT_STYLE
,
32 const wxString
& name
= wxHyperlinkCtrlNameStr
)
34 (void)Create(parent
, id
, label
, url
, pos
, size
, style
, name
);
37 // Creation function (for two-step construction).
38 bool Create(wxWindow
*parent
,
40 const wxString
& label
, const wxString
& url
,
41 const wxPoint
& pos
= wxDefaultPosition
,
42 const wxSize
& size
= wxDefaultSize
,
43 long style
= wxHL_DEFAULT_STYLE
,
44 const wxString
& name
= wxHyperlinkCtrlNameStr
);
47 // overridden base class methods
48 // -----------------------------
50 virtual void SetURL(const wxString
&url
);
52 virtual void SetLabel(const wxString
&label
);
55 virtual WXDWORD
MSWGetStyle(long style
, WXDWORD
*exstyle
) const;
56 virtual wxSize
DoGetBestClientSize() const;
59 virtual bool MSWOnNotify(int idCtrl
, WXLPARAM lParam
, WXLPARAM
*result
);
61 wxDECLARE_DYNAMIC_CLASS( wxHyperlinkCtrl
);
64 #endif // _WX_MSW_HYPERLINK_H_