1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/msw/hyperlink.h
3 // Purpose: Hyperlink control
4 // Author: Rickard Westerlund
7 // Copyright: (c) 2010 wxWidgets team
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
11 #ifndef _WX_MSW_HYPERLINK_H_
12 #define _WX_MSW_HYPERLINK_H_
14 #include "wx/generic/hyperlink.h"
16 // ----------------------------------------------------------------------------
18 // ----------------------------------------------------------------------------
20 class WXDLLIMPEXP_ADV wxHyperlinkCtrl
: public wxGenericHyperlinkCtrl
23 // Default constructor (for two-step construction).
27 wxHyperlinkCtrl(wxWindow
*parent
,
29 const wxString
& label
, const wxString
& url
,
30 const wxPoint
& pos
= wxDefaultPosition
,
31 const wxSize
& size
= wxDefaultSize
,
32 long style
= wxHL_DEFAULT_STYLE
,
33 const wxString
& name
= wxHyperlinkCtrlNameStr
)
35 (void)Create(parent
, id
, label
, url
, pos
, size
, style
, name
);
38 // Creation function (for two-step construction).
39 bool Create(wxWindow
*parent
,
41 const wxString
& label
, const wxString
& url
,
42 const wxPoint
& pos
= wxDefaultPosition
,
43 const wxSize
& size
= wxDefaultSize
,
44 long style
= wxHL_DEFAULT_STYLE
,
45 const wxString
& name
= wxHyperlinkCtrlNameStr
);
48 // overridden base class methods
49 // -----------------------------
51 virtual void SetURL(const wxString
&url
);
53 virtual void SetLabel(const wxString
&label
);
56 virtual WXDWORD
MSWGetStyle(long style
, WXDWORD
*exstyle
) const;
57 virtual wxSize
DoGetBestClientSize() const;
60 virtual bool MSWOnNotify(int idCtrl
, WXLPARAM lParam
, WXLPARAM
*result
);
62 wxDECLARE_DYNAMIC_CLASS( wxHyperlinkCtrl
);
65 #endif // _WX_MSW_HYPERLINK_H_