]> git.saurik.com Git - wxWidgets.git/blame - include/wx/msw/hyperlink.h
Dramatically optimise inserting many items in wxGenericListCtrl.
[wxWidgets.git] / include / wx / msw / hyperlink.h
CommitLineData
b815cf68
VZ
1/////////////////////////////////////////////////////////////////////////////
2// Name: wx/msw/hyperlink.h
3// Purpose: Hyperlink control
4// Author: Rickard Westerlund
5// Created: 2010-08-04
6// RCS-ID: $Id$
7// Copyright: (c) 2010 wxWidgets team
8// Licence: wxWindows licence
9/////////////////////////////////////////////////////////////////////////////
10
11#ifndef _WX_MSW_HYPERLINK_H_
12#define _WX_MSW_HYPERLINK_H_
13
14#include "wx/generic/hyperlink.h"
15
16// ----------------------------------------------------------------------------
17// wxHyperlinkCtrl
18// ----------------------------------------------------------------------------
19
20class WXDLLIMPEXP_ADV wxHyperlinkCtrl : public wxGenericHyperlinkCtrl
21{
22public:
23 // Default constructor (for two-step construction).
24 wxHyperlinkCtrl() { }
25
26 // Constructor.
27 wxHyperlinkCtrl(wxWindow *parent,
28 wxWindowID id,
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)
34 {
35 (void)Create(parent, id, label, url, pos, size, style, name);
36 }
37
38 // Creation function (for two-step construction).
39 bool Create(wxWindow *parent,
40 wxWindowID id,
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);
46
47
48 // overridden base class methods
49 // -----------------------------
50
51 virtual void SetURL(const wxString &url);
52
53 virtual void SetLabel(const wxString &label);
54
55protected:
56 virtual WXDWORD MSWGetStyle(long style, WXDWORD *exstyle) const;
57 virtual wxSize DoGetBestClientSize() const;
58
59private:
60 virtual bool MSWOnNotify(int idCtrl, WXLPARAM lParam, WXLPARAM *result);
61
62 wxDECLARE_DYNAMIC_CLASS( wxHyperlinkCtrl );
63};
64
65#endif // _WX_MSW_HYPERLINK_H_