To implement hyperlinks with VC6.0
---- Many of the Windows Software Copyright dialog boxes are available in the Copyright dialog, these links or provide the company's URL, or provide an email mailbox, allowing the operator to connect with the company and the author, and also for the company. Very good propaganda. If this function can be implemented in your own software, the program will make the program greatly increase. ---- Implement this feature to use a Windows API function shellexecute, its original shape: hinstance shellexecute (hwnd hwnd, // window handle lpctstr lpperation, //) lpctstr lpfile, // file pointer lpctstr lpparameters, // file The canable parameter lpctstr lpdirectory, // default directory int nshowcmd // display mode); ---- SHELLEXECUTE function is used to open or execute a file, only the file name to open or execute when calling this function, Don't use the program to open or perform files, Windows automatically determines how to perform files or use what program to open files based on files to open or execute. The following is given, specific steps: 1. Create a dialog-based application, name HyperLink; 2. Open the Resource Editor, add two Static Text controls and two Button controls on the dialog. ---- Static1 and Button1 are equally emissions, Static1 and Button1 are discharged. ---- Set static1 ID to ID_STATIC1, CAPTION is set to: Computer World Daily: The button of Button1 is set to ID_Button1, and the CAPTION is set to: http://www.computerworld.com.cn, and select the FLAT property. Setting Static2's ID to: ID_STATIC2, CAPTION is set to: Give me a letter: The button ID is set to ID_Button2, and the CAPTION is set to: West_virginia@netese.com, and select the FLAT property.