CHLinkCtrl v1.43

Welcome to CHLinkCtrl, A freeware MFC class that supports Internet Hyperlinks from standard Windows applications just like they are displayed in Web browsers.

Copyright
Usage
History
API Reference
Contacting the Author

 

 

 

Copyright

 

 

 

Usage

 

 

 

History

v1.43 (21 March 2022)

v1.42 (27 November 2021)

v1.41 (13 April 2020)

v1.40 (1 March 2020)

v1.39 (19 December 2019)

v1.38 (11 September 2019)

v1.37 (2 June 2019)

v1.36 (6 August 2018)

v1.35 (17 February 2018)

v1.34 (15 October 2017)

v1.33 (22 November 2015)

v1.32 (18 January 2015)

v1.31 (28 June 2013)

v1.30 (23 June 2013)

v1.29 (22 December 2008)

v1.28 (22 December 2008)

v1.27 (2 February 2007)

v1.26 (27 January 2007)

v1.25 (21 December 2006)

v1.24 (18 February 2002)

v1.23 (12 January 2000)

v1.22 (11 December 1999)

v1.21 (29 March 1999)

v1.2 (6 November 1997)

v1.1 (17 September 1997)

v1.02 (8 September 1997)

v1.01 (9 January 1997)

 

 

 

API Reference

The API consists of the following member functions of the class CHLinkCtrl

CHLinkCtrl::SetHyperLink
CHLinkCtrl::GetHyperLink
CHLinkCtrl::SetLinkColor
CHLinkCtrl::GetLinkColor
CHLinkCtrl::SetVisitedLinkColor
CHLinkCtrl::GetVisitedLinkColor
CHLinkCtrl::SetHighlightLinkColor
CHLinkCtrl::GetHighlightLinkColor
CHLinkCtrl::SetUseHighlightColor
CHLinkCtrl::GetVisited
CHLinkCtrl::Open

 

CHLinkCtrl::SetHyperLink

void CHLinkCtrl::SetHyperLink(const CString& sActualLink);

Parameters

sActualLink The actual hyperlink associated with the static.

Remarks

Associates a hyperlink with this static.

 

CHLinkCtrl::GetHyperLink

CString CHLinkCtrl::GetHyperLink();

Return Value

The actual hyperlink associated with the static.

Remarks

Returns the hyperlink with this static.

 

CHLinkCtrl::SetLinkColor

void CHLinkCtrl::SetLinkColor(const COLORREF& color);

Parameters

color The color of the hyperlink when not active.

Remarks

Sets the color of the hyperlink when not active. Initially this is set to pure blue i.e. RGB(0, 0, 255)

 

CHLinkCtrl::GetLinkColor

COLORREF CHLinkCtrl::GetLinkColor();

Return Value

The color of the hyperlink when not active.

Remarks

Retrieves the color of the hyperlink when not active.

 

CHLinkCtrl::SetVisitedLinkColor

void CHLinkCtrl::SetVisitedLinkColor(const COLORREF& color);

Parameters

color The color of the hyperlink when it has been visited.

Remarks

Sets the color of the hyperlink when it has been visited. Initially this is set to pale magenta i.e. RGB(128, 0, 128)

 

CHLinkCtrl::GetVisitedLinkColor

COLORREF CHLinkCtrl::GetVisitedLinkColor();

Return Value

The color of the hyperlink when it has been visited.

Remarks

Retrieves the color of the hyperlink when it has been visited.

 

CHLinkCtrl::SetHighlightLinkColor

void CHLinkCtrl::SetHighlightLinkColor(const COLORREF& color);

Parameters

color The color of the hyperlink when it is highlighted.

Remarks

Sets the color of the hyperlink when it is highlighted. Initially this is set to pure red i.e. RGB(255, 0, 0)

 

CHLinkCtrl::GetHighlightLinkColor

COLORREF CHLinkCtrl::GetHighlightLinkColor();

Return Value

The color of the hyperlink when it is highlighted.

Remarks

Retrieves the color of the hyperlink when it is highlighted.

 

CHLinkCtrl::SetUseHighlightColor

void CHLinkCtrl::SetUseHighlightColor(bool bUseHighlight);

Parameters

bUseHighlight Whether or not this instance should use the highlight hyperlink color.

Remarks

If bUseHighlight is set to true then the highlight color will be used for the hyperlink, otherwise the normal visited or link color will be used.

 

CHLinkCtrl::GetVisited

bool CHLinkCtrl::GetVisited();

Return Value

TRUE if this hyperlink has been visited otherwise FALSE.

Remarks

Accessor for determining whether the hyperlink has been visited or not.

 

CHLinkCtrl::Open

bool CHLinkCtrl::Open();

Remarks

Actually executes or opens the hyperlink. In the case of a http URL your default web browser will display the web page. In the case of a mailto link, your configured internet email client will be displayed. Any URL protocols can also be used such as "file://", "news://" and "ftp://".

 

 

 

Contacting the Author

PJ Naughter
Email: pjna@naughter.com
Web: http://www.naughter.com
21 March 2022