Dave's Brain

Browse - programming tips - hyperlink control visual studio 2005

Date: 2010apr5

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.
What this info useful to you? You can donate to say thanks

Add a comment

Sign in to add a comment
Copyright © 2008-2010, 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.