Dave's Brain

Browse - Programming Tips - How can I insert a hyperlink control in a dialog with Visual Studio 2005?

Date: 2010apr5
Product: Microsoft Visual Studio 2005

Q.  How can I insert a hyperlink control in a dialog with Visual Studio 2005?

A.  Visual Studio 2005 still doesn't support.

If you are using MFC use this class:

http://www.codeproject.com/KB/miscctrl/hyperlink.aspx


You are using plain win32 do:

- Request common controls 6 in your manifest
- Call InitCommonControlsEx() with ICC_LINK_CLASS
- In your .rc file:

CONTROL "<a href=http://example.com>Hello</a>",IDC_MY_LINK,"syslink", WS_TABSTOP,10,100,361,8
If you are using MFC and later version of Visual Studio you can just drag and drip the Syslink control into your dialog.

Add a comment

Sign in to add a comment
Copyright © 2008-2017, dave - Code samples on Dave's Brain is licensed under the Creative Commons Attribution 2.5 License. However other material, including English text has all rights reserved.